THOSE PENGUINS ARE HAVIN' A GREAT TIME!

    • A bullet of text. Like a slide!
      • How about a sub-bullet?
      • A bullet of text. Like a slide!
        • How about a sub-bullet?
      • A bullet of text. Like a slide!
        • How about a sub-bullet?


    THOSE OTHER PENGUINS ARE HAVIN' A GREAT TIME!

    • A bullet of text. Like a slide!
      • How about a sub-bullet?
      • A bullet of text. Like a slide!
    • How about a sub-bullet?
    • A bullet of text. Like a slide!

     

     

     


    Related Topics
    • The minimal RCE application structure
    • Required compiler flags

     Reference Topics

    • RCEAllocator class documentation
    • RCEManager class documentation

    Test.cc
    #include stuff.h
    
    int goodbye(void) {
    
         int c << testme
    
         return 0
    }  

    Line 1: Include some stuff. Make sure the environment variables are correct.

    Line 7: That's all she wrote!

    To compile this puppy:

    rtems-gcc --flag --option \
              --anotheroption \
              <argument>

    Always be sure to:

    • De-allocate memory
    • Motherhood statement 2
    • And don't forget to de-allocate memory

     

    Test.cc
    #include stuff.h
    
    int goodbye(void) {
    
         int c << testme
         int d
    
         d = m.noreally_goodbye()
    
         return 0
    } 
    
    int noreally_goodbye(void) {
    
         int x << testmeagain
    
         return 0
    } 

    Lines 13-18: New function, noreally_goodbye

    Line 6, 8: Allocate space for return value, call new function.

    Beware calls in this context! Because:

    • There
    • Are
    • Some
    • Nasty
    • Consequences...

    • No labels