This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: how to inline assembler into gcc-FORTRAN program?


Hi,

David Livshin wrote:
> Daniel Franke wrote:
>> 2007/7/25, David Livshin <david.livshin@dalsoft.com>:
>>> Any ideas how can it be done in gfortran?
>>
> Thanks, but this solution is less than satisfactory, because:
>
> 1. It requires an extra function ( even dummy one ) to be supplied at
> the link time
Another possibility is to create an assembler file (option -S) and
modify that one - as it has been suggested here:

http://groups.google.com/group/comp.lang.fortran/browse_thread/thread/dfb2ce232677364e


Seemingly there is very little support of inline assembler in any
Fortran compiler. Fortran III (of 1958) seemingly had it (but it was
never released); Salford's FTN77 seems to have "CODE ... EDOC" according
to comp.lang.fortran. None of the major compilers seems to support it,
which reduces the chance that any gfortran programmer will implement it.
If someone would write the needed patches, one could *consider* to
include it, however.

Tobias


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]