This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: gfortran generated .s file lacks main
Ok the final executable contains main. But on
running it is giving sigfault. While the simple c program
with only return 0; is executing from the the same gcctool chain.
What may the problem?
FX Coudert wrote:
>
>> I compiled a simple hello world program using
>> gfortran for arm. I inspected the .s file generated
>> using -S option. There was a MAIN__ label
>> but no main.
>
> What compiler version are you using? gfortran generates main() directly in
> the compiler since version 4.5.0, before that the main() is provided by
> libgfortranbegin (which is normally linked in if you use "gfortran" to
> link, but can be included by linking with "gcc -lgfortran -lgfortranbegin
> -lm".
>
> FX
>
>
-----
Thanks,
- vikramsp
--
View this message in context: http://old.nabble.com/gfortran-generated-.s-file-lacks-main-tp33314082p33326705.html
Sent from the gcc - fortran mailing list archive at Nabble.com.