home bbs files messages ]

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,702 of 4,675   
   Melzzzzz to NimbUs   
   Re: interfacing ASM (ia-32) with GNU g77   
   23 Jun 17 20:29:21   
   
   From: Melzzzzz@nospicedham.zzzzz.com   
      
   On 2017-06-23, NimbUs  wrote:   
   > Hello, Group ! I posed a similar to question in title in a   
   > Fortran n.g., got no detailed reply, THEN it occurred to me I   
   > should have asked HERE first :=)   
   >   
   > I need guidance and, if possible, a template for writing a   
   > "subroutine" callable from GNU Fortran - specifically, g77.   
   > Let's say, having a couple of long integer (integer*8)   
   > parameters.   
   >   
   > First dilemma : which assembler to choose ? I would much   
   > rather use  Intel/Microsoft MASM/TASM-like over ATT/GAS. My   
   > ASM of choice in general is TASM - but it outputs only   
   > Intel/MS-style "OMF" modules, is that a problem for the GNU   
   > "ld" linker, as I suspect it would be ? Needed an auxiliry   
   > step/prgram for converting to "Coff" - or whatever format GNU   
   > uses ? Would FASM, for instance, be a more natural choice of   
   > an assembler for achieving the stated goal?   
   >   
   > Please also remind me of the calling conventions used by GNU   
   > Fortran on ia32 for parameter passing/clearing of the stack...   
   >   
   > It would be nice if we could have a peek at a short   
   > sample/template written in the appropriately proposed ASM   
   > dialect !   
      
   What operating system you are using? I guess that gfortran follows   
   calling convention/binary format of whatever OS is underneath...   
      
   >   
   > TIA   
   >   
      
      
   --   
   press any key to continue or any other to quit...   
      
   --- 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