473,651 Members | 2,645 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Binary executable format for new language

Hi,

I'm currently designing a new language that compiles into a bytecode
format. I have a choice:

a) Design my own binary file format for the bytecode, symbols and data

b) Use an existing standard for the file format, if existing tools
would then be of use (but the format must not prevent my file from
being portable)
What do you think?

Cheers,
Mark.
Nov 13 '05 #1
6 1986
Mark R.Bannister <Ch*******@aol. com> scribbled the following:
Hi, I'm currently designing a new language that compiles into a bytecode
format. I have a choice: a) Design my own binary file format for the bytecode, symbols and data b) Use an existing standard for the file format, if existing tools
would then be of use (but the format must not prevent my file from
being portable) What do you think?


Um, not to be rude or impolite or anything, but this doesn't really
have anything to do with C. Perhaps you could ask this on
comp.programmin g?

--
/-- Joona Palaste (pa*****@cc.hel sinki.fi) ------------- Finland --------\
\-- http://www.helsinki.fi/~palaste --------------------- rules! --------/
"B-but Angus! You're a dragon!"
- Mickey Mouse
Nov 13 '05 #2
Mark R.Bannister wrote:
Hi,

I'm currently designing a new language that compiles into a bytecode
format. I have a choice:

a) Design my own binary file format for the bytecode, symbols and data

b) Use an existing standard for the file format, if existing tools
would then be of use (but the format must not prevent my file from
being portable)


Unless you are doing an interpreter like the JVM 'a' is not possible
afaik. The OS needs to know how to load and run your executable and
this is very platform specific. Most languages allow you to compile
into several different executable formats.

and yes, comp.programmin g would be a better group.

NR

Nov 13 '05 #3

"Mark R.Bannister" <Ch*******@aol. com> wrote in message
news:26******** *************** **@posting.goog le.com...
Hi,

I'm currently designing a new language that compiles into a bytecode
format. I have a choice:

a) Design my own binary file format for the bytecode, symbols and data

b) Use an existing standard for the file format, if existing tools
would then be of use (but the format must not prevent my file from
being portable)


Are you expecting to compile C into this bytecode? If so, it might be on
topic in this group. There are some possibilities for the compiled code
that exclude the possibility of writing a C compiler.

Usually you will find more people interested in using it if you use an
existing system. That is one reason for language standards. For that
reason, I would prefer choice (b).

-- glen
Nov 13 '05 #4
In <9Hyqb.94064$27 5.262565@attbi_ s53> "Glen Herrmannsfeldt" <ga*@ugcs.calte ch.edu> writes:

"Mark R.Bannister" <Ch*******@aol. com> wrote in message
news:26******* *************** ***@posting.goo gle.com...
Hi,

I'm currently designing a new language that compiles into a bytecode
format. I have a choice:

a) Design my own binary file format for the bytecode, symbols and data

b) Use an existing standard for the file format, if existing tools
would then be of use (but the format must not prevent my file from
being portable)

What was your C question?
Are you expecting to compile C into this bytecode? If so, it might be on
topic in this group.


By what kind of logic? Does this newsgroup deal with C compiler
internals?

Dan
--
Dan Pop
DESY Zeuthen, RZ group
Email: Da*****@ifh.de
Nov 13 '05 #5
Dan Pop <Da*****@cern.c h> scribbled the following:
In <9Hyqb.94064$27 5.262565@attbi_ s53> "Glen Herrmannsfeldt" <ga*@ugcs.calte ch.edu> writes:
"Mark R.Bannister" <Ch*******@aol. com> wrote in message
news:26****** *************** ****@posting.go ogle.com...
Hi,

I'm currently designing a new language that compiles into a bytecode
format. I have a choice:

(snip)
Are you expecting to compile C into this bytecode? If so, it might be on
topic in this group.
By what kind of logic? Does this newsgroup deal with C compiler
internals?


It pretty much has to, Dan. It also has to deal with C++ and Java. Not
only that, but it also has to deal with gardening, car mechanics,
classic literature, discussion about whether bitter is better than
lager, and so on. We don't want to come across as elitistic snobs for
which nothing is good enough, do we?

--
/-- Joona Palaste (pa*****@cc.hel sinki.fi) ------------- Finland --------\
\-- http://www.helsinki.fi/~palaste --------------------- rules! --------/
"It was, er, quite bookish."
- Horace Boothroyd
Nov 13 '05 #6
Groovy hepcat Mark R.Bannister was jivin' on 6 Nov 2003 09:52:25 -0800
in comp.lang.c.
Binary executable format for new language's a cool scene! Dig it!
I'm currently designing a new language that compiles into a bytecode
format. I have a choice:

a) Design my own binary file format for the bytecode, symbols and data

b) Use an existing standard for the file format, if existing tools
would then be of use (but the format must not prevent my file from
being portable)

What do you think?


I think this is off topic. I think you should find a more
appropriate place to post this. I think you should refrain from making
off topic posts in future.

--

Dig the even newer still, yet more improved, sig!

http://alphalink.com.au/~phaywood/
"Ain't I'm a dog?" - Ronny Self, Ain't I'm a Dog, written by G. Sherry & W. Walker.
I know it's not "technicall y correct" English; but since when was rock & roll "technicall y correct"?
Nov 13 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

24
3156
by: pristo | last post by:
hello All, how can i insert unique ID into binary file (that created by compiler)? (so after compiling i can to identify the src that i use) thx
8
7066
by: suresh_C# | last post by:
Dear All, What is difference between Portable Executable (PE) file and a Assembly? Thanks, Mahesh
7
6055
by: John Dann | last post by:
I'm trying to read some binary data from a file created by another program. I know the binary file format but can't change or control the format. The binary data is organised such that it should populate a series of structures of specified variable composition. I have the structures created OK, but actually reading the files is giving me an error. Can I ask a simple question to start with: I'm trying to read the file using the...
29
3938
by: tele-commuter | last post by:
Hi folks, I want to understand how exactly is an image(compiled c code and loaded into memory) stored in memory. What exactly is a linker script? I work with a lot of c code on a daily basis but I really don't understand :
34
2964
by: priyanka | last post by:
Hi, I was wondering if we could parse or do something in the executable( whose source language was C). How can I use some scripting language like perl/python to find out the information about the executable ? Is it possible ? Also, how does the compiler add inling to the program ? I know that whenever it sees"inline" in front of the procedure name, it inlines it. But if we give the -finline options, it inline all the procedures ? How
3
2086
by: techtonik | last post by:
Hello, everyb. Does anybody know simple cross-platform method of probing if executable binary is available and launching it. Problem no.1: test if executable file is available I'll take windows platform as the most relevant in this case. os.access() doesn't handle env PATHEXT and can't detect if a given path would be executable or not. Here "executable" means file that
15
2981
by: JoeC | last post by:
I am writing a program that I am trying to learn and save binary files. This is the page I found as a source: http://www.angelfire.com/country/aldev0/cpphowto/cpp_BinaryFileIO.html I have successfully created and used txt files. I am trying to save then load in an array of pointers to objects:
16
4483
by: Erwin Moller | last post by:
Why is a binary file executable? Is any binary file executable? Is only binary file executable? Are all executable files binary? What is the connection between the attribute of binary and that of executable?
11
3810
by: itdevries | last post by:
Hi, I'm trying to convert some char data I read from a binary file (using ifstream) to a float type. I've managed to convert the int types but now I need to do the float types as well but it doesn't seem to work. The code below is what I'm trying to use. Anyone see any obvious errors? or have any hints/pointers? regards, Igor float floatRead = 0;
0
8349
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8795
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8695
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8576
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7296
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5609
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
2696
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1906
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1585
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.