Author Topic: total noob  (Read 8713 times)

nobody

  • Guest
total noob
« on: April 17, 2008, 01:20:12 AM »
Ok guys, i know im a noob, but i have been programming C/c++ and various other languages for win32. So far i have only used .exe files to run my games/apps, however, a need has arisen for me to switch to using .elf files.

I read somewhere, wikipedia i think, that nasm has some conection to .elf files. like you can program .elf files with them. Can anyone confirm this, if im way off, then what can you do with nasm?

thanks,

Oman

nobody

  • Guest
Re: total noob
« Reply #1 on: April 17, 2008, 01:45:51 AM »
Well... "nasm -f elf myfile.asm"  will produce an ELF linkable object file, suitable for linking to an ELF executable using ld or gcc (which uses ld). ("ELF" = "Executable Linkable Format")

But C/C++ code can be compiled to ELF executables without using Nasm - probably from the same source. Heh! Okay, maybe a few "#IFDEFs...

I'd love to tell you you have to use Nasm to produce ELF files, but it ain't so.

Best,
Frank

nobody

  • Guest
Re: total noob
« Reply #2 on: April 17, 2008, 02:13:56 AM »
ok, thanks. I program using microsoft visual c++ express 08, any idea how to produce an elf file from it?

nobody

  • Guest
Re: total noob
« Reply #3 on: April 17, 2008, 04:00:40 AM »
I don't know. I *very* much doubt if any MS product will produce ELF outout.

Why do you need to switch to ELF files?

Best,
Frank