how to inline assembler into gcc-FORTRAN program?
Tobias Schlüter
tobias.schlueter@physik.uni-muenchen.de
Wed Jul 25 10:18:00 GMT 2007
David Livshin wrote:
> 1. It requires an extra function ( even dummy one ) to be supplied at
> the link time
Not necessarily: since you're looking at the assembly files before
proceeding, you might as well run them through a script that replaces
all references to the marker function(s) with NOPs.
> 2. It doesn't allow to specify "parameters" to the delimiter - in my
> case the delimiter is any comment that begins with ".start_dco" -
> ".start_dco" is used to recognize the delimiter and anything that
> follows it is parsed as "parameters" ( see
> http://www.dalsoft.com/documentation_manual.html#mozTocId452659 and
> http://www.dalsoft.com/documentation_manual.html#mozTocId235475 for
> details ).
You could call asm_func_param1_param2 instead. This puts some
restricitons on your parameter syntax of course.
- Tobi
More information about the Fortran
mailing list