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,695 of 4,675   
   NimbUs to All   
   interfacing ASM (ia-32) with GNU g77 For   
   23 Jun 17 19:47:47   
   
   From: nimbus@nospicedham.XXX.invalid   
      
   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 !   
      
   TIA   
      
   --   
   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