Changes between Version 85 and Version 86 of TBR/UserManual/RTEMSAda


Ignore:
Timestamp:
Sep 10, 2008, 9:09:46 PM (11 years ago)
Author:
JoelSherrill
Comment:

/* Compile and Test */ Use ada-examples

Legend:

Unmodified
Added
Removed
Modified
  • TBR/UserManual/RTEMSAda

    v85 v86  
    317317= Compile and Test =
    318318
    319 {{{
    320 $ cat > t.adb
    321 with Ada.Text_IO;
    322 procedure T is
    323 begin
    324    Ada.Text_IO.Put_Line ("Hello RTEMS Ada");
    325 end T;
    326 <Control-D>
    327 $ powerpc-rtems-gnatmake -f -g t -largs -BINSTALL_DIR/TARGET/BSP -specs bsp_specs -qrtems
    328 ...
    329 $ INSTALL_DIR/powerpc-rtems/psim/tests/runtest ./t
    330 }}}
    331 
    332 Then look in log/t.
    333 
    334 Note1: It appears that gnat (gcc 4.2.0) is mangling target names with periods in them.  CPU-rtems4.7 is turning into CPU-rtems4.
     319
     320Now checkout the ada-examples CVS module and compile so simple Ada programs.  The file Makefile.shared at the top of the ada-examples source contains the rules which are intended to be able to compile and link these examples with any RTEMS BSP.  If the BSP performs a transformation to get from the ".exe" to the downloadable ".ralf", then you will either have to edit Makefile.shared to add this information or do the transformation by hand.
     321
     322Note1: It appears that gnat (gcc 4.2.x and 4.3.x) is mangling target names with periods in them.  CPU-rtems4.7 is turning into CPU-rtems4.
    335323
    336324Note2: It appears that gnat (gcc 4.1 CVS) is always looking for the cross tools in /usr/bin.  Unchecked in 4.2.0.
    337 
    338 Note3: Does not appear to work in RTEMS 4.9.
    339325= Old Build Instructions with GCC 3.2 =
    340326