@@ -125,10 +125,10 @@ If current working directory is not a "toolchain" directory, then change to it:
125125 $ cd toolchain
126126
127127This repository can be checked out to a specific GNU Toolchain for ARC release
128- by specifying a particular release tag, for example for 2015.12 release that
128+ by specifying a particular release tag, for example for 2016.03 release that
129129would be:
130130
131- $ git checkout arc-2015.12
131+ $ git checkout arc-2016.03
132132
133133
134134Building the Toolchain
@@ -203,57 +203,50 @@ will not be overridden.
203203
204204### Build options examples
205205
206- Build default toolchain, bare metal toolchain will support all ARC cores,
207- while Linux toolchain will support ARC 700:
206+ This command will build default toolchain - bare metal toolchain will support
207+ all ARC cores, while Linux toolchain will support ARC 700:
208208
209209 $ ./build-all.sh --install-dir $INSTALL_ROOT
210210
211- Build toolchain for ARC 700 Linux development:
211+ This command will build bare metal toolchain for ARC 700 Linux development:
212212
213213 $ ./build-all.sh --no-elf32 --install-dir $INSTALL_ROOT
214214
215- Build toolchain for ARC HS Linux development:
215+ This command will build bare metal toolchain for ARC HS Linux development:
216216
217- $ ./build-all.sh --no-elf32 --cpu hs38 --install-dir $INSTALL_ROOT
218217
219- Build bare metal toolchain for ARC EM cores:
218+ $ ./build-all.sh --no-elf32 --cpu hs38_linux --install-dir $INSTALL_ROOT
220219
221- $ ./build-all.sh --no-uclibc --install-dir $INSTALL_ROOT --cpu em4_dmips --no-multilib
222-
223- Build bare metal toolchain for ARC EM5D in the ARC EM Starter Kit 2.0:
220+ This command will build bare metal toolchain for ARC EM7D in the ARC EM Starter
221+ Kit 2.2:
224222
225223 $ ./build-all.sh --no-uclibc --install-dir $INSTALL_ROOT --no-multilib \
226- --cpu em4_dmips --target-cflags "-O2 -g -mcode-density -mno-div-rem -mswap -mnorm \
227- -mmpy-option=6 -mbarrel-shifter"
224+ --cpu em4_dmips
228225
229- Build bare metal toolchain for ARC EM7D in the ARC EM Starter Kit 2.0
230- (EM7D_FPU is similiar, but with -mfpu=fpuda) :
226+ This command will build bare metal toolchain for ARC EM9D in the ARC EM Starter
227+ Kit 2.2 :
231228
232229 $ ./build-all.sh --no-uclibc --install-dir $INSTALL_ROOT --no-multilib \
233- --cpu em4_dmips --target-cflags "-O2 -g -mcode-density -mno-div-rem -mswap \
234- -mnorm -mmpy-option=6 -mbarrel-shifter \
235- --param l1-cache-size=16384 --param l1-cache-line-size=32"
230+ --cpu em4_fpus --target-cflags "-O2 -g -mfpu=fpus_all"
236231
237- Build bare metal toolchain for ARC EM4 in the ARC EM Starter Kit 1.1:
232+ This command will build bare metal toolchain for ARC EM11D in the ARC EM Starter
233+ Kit 2.2:
238234
239235 $ ./build-all.sh --no-uclibc --install-dir $INSTALL_ROOT --no-multilib \
240- --cpu em4_dmips --target-cflags "-O2 -g -mcode-density -mdiv-rem -mswap \
241- -mnorm -mmpy-option=6 -mbarrel-shifter"
236+ --cpu em4_fpuda --target-cflags "-O2 -g -mfpu=fpuda_all"
242237
243- Build bare metal toolchain for ARC EM6 in the ARC EM Starter Kit 1.1:
238+ Build bare metal toolchain for ARC EM4 and EM6 in the ARC EM Starter Kit 1.1:
244239
245240 $ ./build-all.sh --no-uclibc --install-dir $INSTALL_ROOT --no-multilib \
246- --cpu em4_dmips --target-cflags "-O2 -g -mcode-density -mdiv-rem -mswap \
247- -mnorm -mmpy-option=6 -mbarrel-shifter \
248- --param l1-cache-size=32768 --param l1-cache-line-size=128"
241+ --cpu em4_dmips
249242
250243To build native ARC Linux toolchain (toolchain that runs on same system as for
251244which it compiles, so host == target) it is required first to build a normal
252245cross toolchain for this system. Then it should be added it to the PATH, after
253246that ` build-all.sh ` can be run:
254247
255248 $ ./build-all.sh --no-elf32 --install-dir $INSTALL_ROOT_NATIVE \
256- --cpu hs38 --native --host arc-snps-linux-uclibc
249+ --cpu hs38_linux --native --host arc-snps-linux-uclibc
257250
258251In this command line, argument to ` --cpu ` option must correspond to the target
259252CPU and argument to ` --host ` options depends on whether this is a big or little
@@ -483,12 +476,14 @@ follows:
483476 $ arc-elf32-gcc -mcpu=arcem -g --specs=nsim.specs simple.c
484477 $ arc-elf32-gdb --quiet a.out
485478 (gdb) set tdesc filename toolchain/extras/opella-xd/opella-arcem-tdesc.xml
486- (gdb) set target remote :2331
479+ (gdb) target remote :2331
487480 (gdb) load
488481 (gdb) break main
489482 (gdb) continue
490483 (gdb) break exit
491484 (gdb) continue
485+ # Register R0 contains exit code of function main()
486+ (gtb) info reg r0
492487 (gdb) quit
493488
494489Similar to OpenOCD hostlink is not available in GDB with Ashling Opella-XD.
0 commit comments