|
From: | Fabrice Bellard |
Subject: | Re: [Tinycc-devel] TCC code generation for a stack based VM |
Date: | Wed, 03 Nov 2004 21:17:27 +0100 |
User-agent: | Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030624 |
Zoltán Lörincz wrote:
But i have to implement a custom byte format wich has to be simpler than the elf format.If your format has to be more complicated than a raw binary image (which TCC can generate with the -Wl,--oformat,binary option), then use ELF.Yes the format is simple, it should contain:- the generated code - global data section - relocation table No symbol table or other additional sections are necessary. But i will also have a look on the raw binary image of TCC to see if ican use it.
Use ELF, it does exactly what you want - no need to handle symbols if you don't need them. An ELF loader can be 50 line long. Moreover, I won't integrate another object or executable format in TinyCC if it is not a standard one.
Fabrice.
[Prev in Thread] | Current Thread | [Next in Thread] |