Documentation for libraries used with RL78
Documentation for libraries used with RL78
There is a g14 folder with various libraries for inclusion in linking. Where can I find information on these. The link process is still looking for __umulsi3_highpart etc.
Hello,
Please find here the third screenshot relating to the previous answer.
—
Thank you,
Noemi Bugyi
The GNU Tools Team
Hello,
Could you please tell us why don’t you wish to use rl78-elf-gcc for linking as well?
Using rl78-elf-gcc for linking would reduce the possibility of error occurrences.
If you still wish to link with rl78-elf-ld please follow my example on how to locate the libraries:
> rl78-elf-gcc -v -mg14 C:\Users\Workstation7\Desktop\test.c
From this log the necessary libraries were located as follows:
LIBRARY_PATH=c:/program files (x86)/gcc for renesas rl78 4.9.2.201603-gnurl78-elf/rl78-elf/rl78-elf/bin/../lib/gcc/rl78-elf/4.9.2.201603-GNURL78/g14/;c:/program files (x86)/gcc for renesas rl78 4.9.2.201603-gnurl78-elf/rl78-elf/rl78-elf/bin/../lib/gcc/rl78-elf/4.9.2.201603-GNURL78/../../../../rl78-elf/lib/g14/;c:/program files (x86)/gcc for renesas rl78 4.9.2.201603-gnurl78-elf/rl78-elf/rl78-elf/bin/../lib/gcc/rl78-elf/4.9.2.201603-GNURL78/;c:/program files (x86)/gcc for renesas rl78 4.9.2.201603-gnurl78-elf/rl78-elf/rl78-elf/bin/../lib/gcc/;c:/program files (x86)/gcc for renesas rl78 4.9.2.201603-gnurl78-elf/rl78-elf/rl78-elf/bin/../lib/gcc/rl78-elf/4.9.2.201603-GNURL78/../../../../rl78-elf/lib/
After that I was able to use rl78-elf-ld to link the libraries, as follows:
> rl78-elf-gcc.exe -msim -c -g C:\Users\Workstation7\Desktop\test.c -o C:\Users\Workstation7\Desktop\test.o
rl78-elf-ld.exe “c:/program files (x86)/gcc for renesas rl78 4.9.2.201603-gnurl78-elf/rl78-elf/rl78-elf/bin/../lib/gcc/rl78-elf/4.9.2.201603-GNURL78/../../../../rl78-elf/lib/g14/crt0.o” “c:/program files (x86)/gcc for renesas rl78 4.9.2.201603-gnurl78-elf/rl78-elf/rl78-elf/bin/../lib/gcc/rl78-elf/4.9.2.201603-GNURL78/g14/crtbegin.o” -L”c:/program files (x86)/gcc for renesas rl78 4.9.2.201603-gnurl78-elf/rl78-elf/rl78-elf/bin/../lib/gcc/rl78-elf/4.9.2.201603-GNURL78/g14″ -L”c:/program files (x86)/gcc for renesas rl78 4.9.2.201603-gnurl78-elf/rl78-elf/rl78-elf/bin/../lib/gcc/rl78-elf/4.9.2.201603-GNURL78/../../../../rl78-elf/lib/g14″ -L”c:/program files (x86)/gcc for renesas rl78 4.9.2.201603-gnurl78-elf/rl78-elf/rl78-elf/bin/../lib/gcc/rl78-elf/4.9.2.201603-GNURL78″ -L”c:/program files (x86)/gcc for renesas rl78 4.9.2.201603-gnurl78-elf/rl78-elf/rl78-elf/bin/../lib/gcc” -L”c:/program files (x86)/gcc for renesas rl78 4.9.2.201603-gnurl78-elf/rl78-elf/rl78-elf/bin/../lib/gcc/rl78-elf/4.9.2.201603-GNURL78/../../../../rl78-elf/lib” C:\Users\Workstation7\Desktop\test.o -lgcc –start-group -lc -lsim –end-group –script “c:/program files (x86)/gcc for renesas rl78 4.9.2.201603-gnurl78-elf/rl78-elf/rl78-elf/bin/../lib/gcc/rl78-elf/4.9.2.201603-GNURL78/../../../../rl78-elf/lib/g14/rl78.ld” -lgcc “c:/program files (x86)/gcc for renesas rl78 4.9.2.201603-gnurl78-elf/rl78-elf/rl78-elf/bin/../lib/gcc/rl78-elf/4.9.2.201603-GNURL78/g14/crtend.o” “c:/program files (x86)/gcc for renesas rl78 4.9.2.201603-gnurl78-elf/rl78-elf/rl78-elf/bin/../lib/gcc/rl78-elf/4.9.2.201603-GNURL78/../../../../rl78-elf/lib/g14/crtn.o” -o C:\Users\Workstation7\Desktop\output1.out
> rl78-elf-run -v C:\Users\Workstation7\Desktop\output1.out
If I change the command line as follows, I will get a similar log file as the above mentioned with some differences such as library path.
Please find attached a printscreen showing the differences.
> rl78-elf-gcc -v -mg13 C:\Users\Workstation7\Desktop\test.c
—
Thank you,
Noemi Bugyi
The GNU Tools Team
Hello,
The compiler has multilibs support built-in, and is capable of automatically selecting the proper library to use, depending on the compile options that are being passed to it, for example when issuing a command like this one below:
$ rl78-elf-gcc -v hello_world.c -mg14
On the same topic, e2Studio is also capable of selecting the right library during the linking process.
Should you have any further questions, please feel free to let us know.
—
Thank you,
Noemi Bugyi
The GNU Tools Team