Presentation is loading. Please wait.

Presentation is loading. Please wait.

Cross-Compiler Issues EPICS Meeting, May 2001 Markus Janousch (SLS)

Similar presentations


Presentation on theme: "Cross-Compiler Issues EPICS Meeting, May 2001 Markus Janousch (SLS)"— Presentation transcript:

1 Cross-Compiler Issues EPICS Meeting, May 2001 Markus Janousch (SLS)

2 X-CompilationEPICS Meeting, May 2001M.Janousch Outline What and why EPICS, VxWorks Tool Chain (GCC, Binutils) How to build Open issues Conclusions

3 X-CompilationEPICS Meeting, May 2001M.Janousch Why Cross Compilers? RT-embedded systems Special hardware Real world events Dedicated systems No development tools (VxWorks, RTEMS) Mainframes, PCs Common hardware Many applications General systems Many development tools Tool Chain TARGETHOST

4 X-CompilationEPICS Meeting, May 2001M.Janousch VxWorks, EPICS Relationship VxWorks Kernel (OS), … No development tools on the target Development on the host EPICS Collection of applications Runs on RT-system C source code Tornado

5 X-CompilationEPICS Meeting, May 2001M.Janousch A Tool Chain Compiler Preprocessor Assembler Archiver Tornado 1 based on GNU GCC for compiler (2.7.2) Binutils (2.7.1) No Tornado available for Linux Host (ver. < 3). Linker Loader Debugger … Libraries

6 X-CompilationEPICS Meeting, May 2001M.Janousch How to build a X-compiler 1. Prerequisites Have -gcc-2.8.1 + patches -binutils 2.9.1 + patches -VxWorks header files (Tornado 1) 2../configure –prefix=/usr/local/cross – target=powerpc-wrs-vxworks --… 3. make all install 4. Renaming of executables, to conform to Tornado 5. RPMs for Host=(RH6,7), target = 68k, PPC

7 X-CompilationEPICS Meeting, May 2001M.Janousch Newer Versions Latest versions gcc-2.95.3 Binutils 2.11 Don’t use gcc-2.96(97)! See RH7.0 desaster. Can give instructions how to build.

8 X-CompilationEPICS Meeting, May 2001M.Janousch Open Issues C++, name mangling, munching, STL, IO, ANSI, … What happens in gcc-3? What do others?

9 X-CompilationEPICS Meeting, May 2001M.Janousch Conclusions Use development under Linux exclusively. VxWork kernel build on a Sun. Occasionally use other Tornado tools.


Download ppt "Cross-Compiler Issues EPICS Meeting, May 2001 Markus Janousch (SLS)"

Similar presentations


Ads by Google