Download User Manual - KPIT GNU Tools

Transcript
GNUSH (ELF) Toolchain
2.8
User Manual
Using E10A Emulator ............................................................................... 211
2.8.1
RSK Quick start Guide Generating a Test Project ................................ 211
2.9 Trouble Shooting with Simulator Debugging ............................................ 234
2.10
Debugging using GDBSH .................................................................... 234
2.10.1
2.10.2
2.10.3
2.10.4
2.10.5
2.10.6
Summary of GDB, the GNU Debugger ................................................. 234
GDB as Free Software ......................................................................... 234
Requirements of GDB .......................................................................... 234
Startup GDBSH .................................................................................... 235
GDB Comprehensive Quick Reference ................................................ 248
DWARF Specifications ......................................................................... 261
3
Differences between Renesas SHC and KPIT GNUSH .................. 295
3.1
Migrating from Renesas SHC to GNUSH ................................................. 295
3.1.1
3.1.2
3.1.3
3.1.4
3.1.5
3.1.6
3.1.7
3.2
ABI specification differences between Renesas SHC and KPIT GNUSH . 330
3.2.1
3.2.2
3.2.3
3.2.4
3.2.5
3.2.6
3.2.7
3.2.8
3.2.9
3.2.10
3.3
Glossary ............................................................................................... 330
Byte Ordering ....................................................................................... 330
Use of floating-point unit (fpu) .............................................................. 330
Stack Layout ........................................................................................ 330
Data type sizes and alignments ............................................................ 331
Register Usage .................................................................................... 331
Frame Pointer ...................................................................................... 332
Function Value ..................................................................................... 333
Bit-Field ................................................................................................ 333
Structure Alignment .............................................................................. 333
ELF specifications for Renesas SHC and KPIT ........................................ 334
3.3.1
3.4
Preface ................................................................................................ 295
Compiler command line options ........................................................... 295
Compiler directives............................................................................... 299
Assembler Directives ........................................................................... 302
Intrinsic Functions: ............................................................................... 303
C and Math Library Functions .............................................................. 322
Using Inline Assembly Language ......................................................... 329
ELF Specification Differences .............................................................. 334
Interoperability between Renesas SHC and GNUSH ............................... 349
3.4.1
3.4.2
3.4.3
3.4.4
3.4.5
3.4.6
3.4.7
Renesas ABI Implementations in GNUSH-ELF toolchain ..................... 349
HEW Settings for using Interoperability ................................................ 352
Binary utility ‗convrenesaslib‘ ............................................................... 359
Interoperability enhancements in v0702 GNUSH-ELF toolchain ........... 360
Interoperability Test Results ................................................................. 362
Interoperability and C++ ....................................................................... 366
Workarounds/Solutions for known errors in ANSI C functions .............. 368
Page 3 of 385