Forums before death by AOL, social media and spammers... "We can't have nice things"
|    comp.lang.asm.x86    |    Ahh, the lost art of x86 assembly    |    4,675 messages    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
|    Message 2,719 of 4,675    |
|    NimbUs to All    |
|    Re: interfacing ASM (ia-32) with GNU g77    |
|    26 Jun 17 19:09:07    |
      From: nimbus@nospicedham.XXX.invalid              Bogdan (bogdro) wrote as news:594e3b87$0$647$65785112       @news.neostrada.pl:              Dzien' dobry !              > I'm using NASM (or "nasm", to be compatible with the       authors' naming       > ;) ). It's free, Free (OSS), runs on Linux, and migration       from TASM       > was easy. Also can output in COFF for DJGPP/MinGW, if you're       on       > DOS/Windows.              Indeed, NASM was also Frank Kotler's suggestion, upthread.       I've dowlnloaded it (win32 version) - very cool and powerful       esp. with respect to all the various object formats it can       spit out! Impressive.              I tested the NASM + g77 combo on the example 'asmfl' which you       kindly provided (with helpful comments). On my windows XP 32-       bits installation, the example compiled and ran successfully       after making two minor modifications, which I am documenting       here, with comments for the sake of people who might search       the news groups archive, some time in the future.              *Mod 1. : For some reason, on this Windows platform, external       names imported by Fortran (g77) want to be ENCLOSED in _2_       underscores, thus '_sum_' in your here modified ASM example :               ; NASM - asm1fl.asm        section .text use32        global _sum_               _sum_: ; note two _underscores_              *Mod. 2 : The object format expected by g77 on the platform is       coff, not ELF, so I had to change the assembler command line       to : 'nasm -f coff asm1fl.asm' .              Modulo these minor adjustments (for the 2nd one I had to peek       at generated object files). BTW, my version of the Fortran       compiler that might not be up to date... but wtf, it WORKS ! :        [C:\F] g77 -v        g77 version 2.95 19990728 (release) (from FSF-g77 version       0.5.25 19990728 (release))                     Thank you (and Frank) very much for setting me on my way with       Nasm and the very useful templates !                     --       NimbUs              --- SoupGate-Win32 v1.05        * Origin: you cannot sedate... all the things you hate (1:229/2)    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
(c) 1994, bbs@darkrealms.ca