driver.c

/*
 * Define macros to specify the standard C calling convention
 * The macros are designed so that they will work with all
 * supported C/C++ compilers.
 *
 * To use define your function prototype like this:
 *
 * return_type PRE_CDECL func_name( args ) POST_CDECL;
 *
 * For example:
 *
 * int PRE_CDECL f( int x, int y) POST_CDECL;
 */

#if defined(__GNUC__)
#define PRE_CDECL
#define POST_CDECL __attribute__((cdecl))
#else
#define PRE_CDECL __cdecl
#define POST_CDECL
#endif

int PRE_CDECL asm_main( void ) POST_CDECL;

int main()
{
  int ret_status;
  ret_status = asm_main();
  return ret_status;
}
Valid HTML 4.01 Valid CSS