Skip to contentSkip to conversation

Intel's fortan compiler

Linux-ia64 dai yiyang 2 participants 2 messages Mar 10, 2003

lore
Share & tools
lore

dai yiyang

author
#0 lore raw

Hi all:

Is there anybody know how to use the -nus option of Intel's fortan
compiler on IA64 ??

basicly , fortan compiler will add a underscore to any unsolved symbol
in the source ,that means if the call is "system" , then the exported symbol will be "system_"

the "-nus" is to get rid of the underscore of the exported symbol so that it can be linked with C lib ,,,,

My problem is : I just want to get rid of the underscore for selected
symbol , Intel's compiler manual said I can do that with the option "-nus[file]" , but it dont work .

Anyone can help me ??

Regards,
Yiyang

_________________________________________________________________
与联机的朋友进行交流,请使用 MSN Messenger: http://messenger.msn.com/cn

#1 lore raw

Hi,

[hideki@valse tmp]$ cat nuslist
your_function
[hideki@valse tmp]$ cat a.f
program main
call your_function
end

[hideki@valse tmp]$ efc -c a.f -nus,nuslist
program MAIN

4 Lines Compiled
[hideki@valse tmp]$ nm a.o
0000000000000000 t .l_main
0000000000000000 d EPC$RZERO$0
0000000000000000 ? __fte_main
0000000000000000 ? __udt_main

                 U f90_init
                 U f_stop

0000000000000000 T main
U your_function
[hideki@valse tmp]$

Right?

End of my email
--
Yours faithfully,
Hideki Yamamoto (V).v.(V) # Empowered by Innovation

At Mon, 10 Mar 2003 21:28:02 +0800,

Quoted 37 lines · dai yiyang

Hi all:

Is there anybody know how to use the -nus option of Intel's fortan
compiler on IA64 ??

basicly , fortan compiler will add a underscore to any unsolved symbol
in the source ,that means if the call is "system" , then the exported symbol will be "system_"

the "-nus" is to get rid of the underscore of the exported symbol so that it can be linked with C lib ,,,,

My problem is : I just want to get rid of the underscore for selected
symbol , Intel's compiler manual said I can do that with the option "-nus[file]" , but it dont work .

Anyone can help me ??

Regards,
Yiyang

_________________________________________________________________
与联机的朋友进行交流,请使用 MSN Messenger: http://messenger.msn.com/cn

_______________________________________________
Linux-IA64 mailing list
[email protected]
http://lists.linuxia64.org/lists/listinfo/linux-ia64