flat assembler
Message board for the users of flat assembler.

Index > OS Construction > What is the best file format to my asm files?


What is the best file format to my asm files (OS Construction Context)?
A.OUT
0%
 0%  [ 0 ]
ELF
35%
 35%  [ 6 ]
COFF
17%
 17%  [ 3 ]
Other?
47%
 47%  [ 8 ]
Total Votes : 17

Author
Thread Post new topic Reply to topic
MarcoAlves



Joined: 09 Jun 2006
Posts: 30
MarcoAlves
Please, what (and why, of course) is the best format to asm files? Consider OS Construction context.

ELF? A.OUT? COFF?

Another question, how I can link an ELF format file in ld using djggp? (I'm under windows xp). I didn't found the BFD name for ELF.

Thanks in advance.
Best Regards,
Marco Alves.
Post 19 Jun 2006, 12:57
View user's profile Send private message Reply with quote
Dex4u



Joined: 08 Feb 2005
Posts: 1601
Location: web
Dex4u
The file format for my kernel is a mz exe file, i use a bootloader call bootprog to load it, as it can load com or exe files put anyware on the disk, this mean it very easy for testing, and will also run from dos.
I thing the best file format for programs run in your OS would be a bin file with simple header.
NOTE: This is for a OS writen in 100% ASM.
Post 19 Jun 2006, 14:46
View user's profile Send private message Reply with quote
amcl



Joined: 08 May 2006
Posts: 5
amcl
Does the djgpp linker support ELF?

Try the following with the djgpp ld to see what formats it supports.
This was issued under Cygwin. Since Windows can't load an ELF
file, that format is not supported under the Cygwin toolchain.

Code:
$ ld -V
GNU ld version 2.16.91 20050610
  Supported emulations:
   i386pe
    


If for some reason the djgpp linker does support elf, you could direct
it to use that output format like this (assuming elf_i386 was listed):

Code:
$ ld -m elf_i386 ...
    
Post 19 Jun 2006, 21:13
View user's profile Send private message Reply with quote
rugxulo



Joined: 09 Aug 2005
Posts: 2341
Location: Usono (aka, USA)
rugxulo
I don't think DJGPP by default supports ELF, but try the following (untested by me but might work):

http://elfbinutils.narod.ru/
http://membres.lycos.fr/placr/binutils.html
Post 20 Jun 2006, 02:51
View user's profile Send private message Visit poster's website Reply with quote
Octavio



Joined: 21 Jun 2003
Posts: 366
Location: Spain
Octavio
MarcoAlves wrote:
Please, what (and why, of course) is the best format to asm files? Consider OS Construction context.

ELF? A.OUT? COFF?

Another question, how I can link an ELF format file in ld using djggp? (I'm under windows xp). I didn't found the BFD name for ELF.

Thanks in advance.
Best Regards,
Marco Alves.

On my Os i use 'txt' source files, because programs are assembled at load
time ,i found this is the simpler solution. I also use ELF relocatable for programs written in 'C' but donĀ“t know if it is better than the other formats.By default djgpp do not support elf but if the links given by Rugxulo works ,then you can download binutils wich supports elf format.
Post 20 Jun 2006, 10:24
View user's profile Send private message Visit poster's website Reply with quote
MarcoAlves



Joined: 09 Jun 2006
Posts: 30
MarcoAlves
rugxulo wrote:
I don't think DJGPP by default supports ELF, but try the following (untested by me but might work):

http://elfbinutils.narod.ru/
http://membres.lycos.fr/placr/binutils.html


The last link opens. But i can't download the file. Do you have it? Can
give it to us?
Post 20 Jun 2006, 12:53
View user's profile Send private message Reply with quote
rugxulo



Joined: 09 Aug 2005
Posts: 2341
Location: Usono (aka, USA)
rugxulo
Yeah, I have it, not sure why people keep having trouble downloading that file though. That's really weird.

It's too big to attach here, so e-mail me, and I'll send it to you.
Post 20 Jun 2006, 14:15
View user's profile Send private message Visit poster's website Reply with quote
MarcoAlves



Joined: 09 Jun 2006
Posts: 30
MarcoAlves
Post 20 Jun 2006, 17:00
View user's profile Send private message Reply with quote
rugxulo



Joined: 09 Aug 2005
Posts: 2341
Location: Usono (aka, USA)
rugxulo
I have a Gmail account too, and I think they don't allow binaries in .ZIPs, but I'll send it UHarc'd, okay? (should be smaller anyways)

ftp://ftp.sac.sk/pub/sac/pack/uharc06b.zip
Post 20 Jun 2006, 19:17
View user's profile Send private message Visit poster's website Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2020, Tomasz Grysztar.

Powered by rwasa.