two lib?

Asked by idiotdream

i am from sourcery g++ lite to this toolchain recently.
there is two lib directorys ,what is the use of them?
1 /bin share arm-none-eabi and lib?? this lib directory is large for me.
2 /arm-none-eabi/bin include share lib??

is there document for this directorys?

thank you very much!

Question information

Language:
English Edit question
Status:
Solved
For:
GNU Arm Embedded Toolchain Edit question
Assignee:
No assignee Edit question
Solved by:
Terry Guo
Solved:
Last query:
Last reply:

This question was reopened

Revision history for this message
Terry Guo (terry.guo) said :
#1

The gcc-arm-none-eabi-4_8-2014q1/arm-none-eabi/lib is used for c libraries built from newlib.

The gcc-arm-none-eabi-4_8-2014q1/lib is used for gcc own libraries.

Revision history for this message
idiotdream (idiotdream) said :
#2

thank you

Revision history for this message
idiotdream (idiotdream) said :
#3

i have tried that delete the directory of /lib,then run the command $/bin/arm-non-eabi-gcc --version

then this command run successfully, if it mean that i can delete that directory?

Revision history for this message
Terry Guo (terry.guo) said :
#4

You will fail when you compile file.

Revision history for this message
Best Terry Guo (terry.guo) said :
#5

./gcc-arm-none-eabi-4_8-2014q1/bin/arm-none-eabi-gcc -nostdlib -ffreestanding helloworld.c
arm-none-eabi-gcc: error trying to exec 'cc1': execvp: No such file or directory

Revision history for this message
idiotdream (idiotdream) said :
#6

thank you ,i really understand