OAR

RTEMS 4.0.0 On-Line Library


Verifying the Operation of the Cross Toolset

PREV UP NEXT Bookshelf Getting Started with RTEMS for C/C++ Users

4.3: Verifying the Operation of the Cross Toolset

In order to insure that the cross-compiler is invoking the correct subprograms (like as and ld), one can test assemble a small program. When in verbose more, gcc prints out information showing where it found the subprograms it invokes. Place the following function in a file named f.c:

int f( int x )
{
  return x + 1;
}

Then assemble the file using a command similar to the following:

m68k-rtems-gcc -v -S f.c

Where m68k-rtems-gcc should be changed to match the installed name of your cross compiler. The result of this command will be a sequence of output showing where the cross-compiler searched for and found its subcomponents. Verify that these paths correspond to your <INSTALL_POINT>.

NOTE: One of the most common installation errors is for the cross-compiler not to be able to find the cross assembler and default to using the native as. This can result in very confusing error messages.


PREV UP NEXT Bookshelf Getting Started with RTEMS for C/C++ Users

Copyright © 1988-1998 OAR Corporation