Source code of .obj capable assembler?

From: Chris Williams (spamtrap_at_crayne.org)
Date: 01/24/05

  • Next message: Clax86 : "Get the FAQs"
    Date: Mon, 24 Jan 2005 07:37:04 +0000 (UTC)
    
    

    I, unfortunately, know nothing about object files beyond my general
    figuring that they contain mostly compiled code with various hard
    addresses substituted by lookup symbols (perhaps?). Despite, I would
    like to create an assembler that can create LINK.exe compatible WIN32
    code.

    I have done a check of HLA and NASM to see if they might have some
    source that I could look to for guidance, but HLA appears to translate
    from HL assembly to the local standard and NASM has the blurb:

    "obj is not exclusively a 16-bit format, though: NASM has full support
    for the 32-bit extensions to the format. In particular, 32-bit obj
    format files are used by Borland's Win32 compilers, instead of using
    Microsoft's newer win32 object file format."

    which makes me fear that the "newer win32 object file format" is not
    supported.

    Does anyone know of any simple, nuts-and-bolts assemblers that can
    produce modern .obj files and is (ideally) not itself written in
    assembly?

    -Chris Williams


  • Next message: Clax86 : "Get the FAQs"

    Relevant Pages

    • Re: How to compile g95 and get 64-bit executable (Question reformulated)
      ... > and this compiler generates also some 32-bit executable (after I ... a 32 bit ELF executable just specifies the object file ... no matter what the platform or the object file format. ...
      (comp.lang.fortran)
    • Re: ATI drivers from Darwin (OSX) on FreeBSD
      ... > At best, you'll be able to disassemble the object file, which entails ... and decoding the machine opcodes ...
      (comp.unix.bsd.freebsd.misc)
    • Re: Linking with objects created from c code
      ... delphi application using Delphi 2007 with the following directive: ... I get the following error: E2045 Bad object file format: 'C:\opi\c ... "Democracy is where you can say what you think even if you don't ...
      (comp.lang.pascal.delphi.misc)
    • Re: Assembly Console Programming in Windows
      ... > as a re-usable and sharable Assembler base, ... Gas was available back then. ... way GCC achieve OS object file independence. ... Writing an encoder is a lot of grunt work. ...
      (alt.lang.asm)
    • Re: I think i finally got a definition of an Assembler!
      ... definition - you can _never_ have an assembler for that system. ... production of an object file, ... A compiler that produces a object file from transalting the source ... I was refering as Randallīs HLA as he hole system...It does not ...
      (alt.lang.asm)