Re: A new programming language
Posted: Sat May 28, 2011 9:18 am
berkus, combuster: you didn't get the whole point. Not surprised.
The Place to Start for Operating System Developers
https://f.osdev.org/
First, .h file may contain more information than just function prototypes.turdus wrote:You miss the point. You cannot reproduce full function prototypes from an ELF, that's why you need two files: an so and a h. I don't like that.
Code: Select all
$ cat abc.cpp
int adder(int a, int b){
return a+b;
}
$ objdump -t a.o
a.o: file format elf32-i386-freebsd
SYMBOL TABLE:
00000000 l df *ABS* 00000000 a.cpp
00000000 l d .text 00000000
00000000 l d .data 00000000
00000000 l d .bss 00000000
00000000 l d .comment 00000000
00000000 g F .text 0000000b _Z5adderii
00000000 *UND* 00000000 __gxx_personality_v0
I can, with a stock binutils and a yasm, read and modify configurations embedded into the binary. It will work on linux, bsd, and my OS alike, as well as any x86-based platform as the method requires absolutely no additional logic on the host side. It will work the same on any other non-x86 ELF-based platform, it only requires binutils and an added tool that does bin2obj functionality and adding some addresses.turdus wrote:berkus, combuster: you didn't get the whole point. Not surprised.
I have already 2 (perhaps more, but these I remember): one is .gear and the other one is .aze.berkus wrote:It is certainly fun when you're 14. I also invented a few file formats at that time.casnix wrote:"file format for the sake of file format"
for me, reinventing the wheel is fun.....