Changeset 8e76546 in rtems


Ignore:
Timestamp:
Mar 6, 1996, 9:26:28 PM (26 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
1a8fde6c
Parents:
ba39113
Message:

Removed prototyes for static inline rgutines and moved the comments into
the inline implementation. The impetus for this was twofold. First,
it is incorrect to have static inline prototypes when using the macro
implementation. Second, this reduced the number of lines in the include
files seen by rtems.h by about 2000 lines.

Next we restricted visibility for the inline routines to inside the
executive itself EXCEPT for a handful of objects. This reduced the
number of include files included by rtems.h by 40 files and reduced
the lines in the include files seen by rtems.h by about 6000 lines.

In total, these reduced the compile time of the entire RTEMS tree by 20%.
This results in about 8 minutes savings on the SparcStation? 10 morgana.

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • c/src/exec/score/include/rtems/score/wkspace.h

    rba39113 r8e76546  
    3434
    3535/*
    36  *  _Workspace_Handler_initialization
    37  *
    38  *  DESCRIPTION:
    39  *
    40  *  This routine performs the initialization necessary for this handler.
    41  */
    42 
    43 STATIC INLINE void _Workspace_Handler_initialization(
    44   void       *starting_address,
    45   unsigned32  size
    46 );
    47 
    48 /*
    49  *  _Workspace_Allocate
    50  *
    51  *  DESCRIPTION:
    52  *
    53  *  This routine returns the address of a block of memory of size
    54  *  bytes.  If a block of the appropriate size cannot be allocated
    55  *  from the workspace, then NULL is returned.
    56  */
    57 
    58 STATIC INLINE void *_Workspace_Allocate(
    59   unsigned32 size
    60 );
    61 
    62 /*
    6336 *  _Workspace_Allocate_or_fatal_error
    6437 *
     
    7447);
    7548
    76 /*
    77  *  _Workspace_Free
    78  *
    79  *  DESCRIPTION:
    80  *
    81  *  This function frees the specified block of memory.  If the block
    82  *  belongs to the Workspace and can be successfully freed, then
    83  *  TRUE is returned.  Otherwise FALSE is returned.
    84  */
    85 
    86 STATIC INLINE boolean _Workspace_Free(
    87   void *block
    88 );
    89 
     49#ifndef __RTEMS_APPLICATION__
    9050#include <rtems/score/wkspace.inl>
     51#endif
    9152
    9253#ifdef __cplusplus
  • cpukit/score/include/rtems/score/wkspace.h

    rba39113 r8e76546  
    3434
    3535/*
    36  *  _Workspace_Handler_initialization
    37  *
    38  *  DESCRIPTION:
    39  *
    40  *  This routine performs the initialization necessary for this handler.
    41  */
    42 
    43 STATIC INLINE void _Workspace_Handler_initialization(
    44   void       *starting_address,
    45   unsigned32  size
    46 );
    47 
    48 /*
    49  *  _Workspace_Allocate
    50  *
    51  *  DESCRIPTION:
    52  *
    53  *  This routine returns the address of a block of memory of size
    54  *  bytes.  If a block of the appropriate size cannot be allocated
    55  *  from the workspace, then NULL is returned.
    56  */
    57 
    58 STATIC INLINE void *_Workspace_Allocate(
    59   unsigned32 size
    60 );
    61 
    62 /*
    6336 *  _Workspace_Allocate_or_fatal_error
    6437 *
     
    7447);
    7548
    76 /*
    77  *  _Workspace_Free
    78  *
    79  *  DESCRIPTION:
    80  *
    81  *  This function frees the specified block of memory.  If the block
    82  *  belongs to the Workspace and can be successfully freed, then
    83  *  TRUE is returned.  Otherwise FALSE is returned.
    84  */
    85 
    86 STATIC INLINE boolean _Workspace_Free(
    87   void *block
    88 );
    89 
     49#ifndef __RTEMS_APPLICATION__
    9050#include <rtems/score/wkspace.inl>
     51#endif
    9152
    9253#ifdef __cplusplus
Note: See TracChangeset for help on using the changeset viewer.