Andes Workshop

It is currently Thu Mar 28, 2024 10:35 pm

All times are UTC + 8 hours [ DST ]




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: Andes default start files
PostPosted: Thu Jan 23, 2014 4:06 pm 
Offline
User avatar

Joined: Fri Mar 04, 2011 9:36 pm
Posts: 500
Andes toolchain will link crt0.o in default.

We can generate map file to see this feature.
As the following picture, please check this box.
Attachment:
map.gif
map.gif [ 36.16 KiB | Viewed 6368 times ]


In map.txt, there is crt0.o.
Attachment:
map2.gif
map2.gif [ 59.95 KiB | Viewed 6368 times ]


If we don't need start files. We can use this setting.
Check "-nostartfiles".
Attachment:
map3.gif
map3.gif [ 21.46 KiB | Viewed 6368 times ]

Example:
nds32le-elf-gcc -Os -nostartfiles -static -T"../nds32.ld" -Wl,--gc-sections -o "demo-int.adx" ./src/crt0.o ./src/init-default.o ./src/init-soc.o ./src/interrupt.o ./src/main.o ./src/uart.o
This is the result. No crt0.o
Attachment:
map4.gif
map4.gif [ 11.07 KiB | Viewed 6368 times ]


Top
 Profile Send private message E-mail  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC + 8 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 24 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group