source: EcnlProtoTool/trunk/tcc-0.9.27/tests/asm-c-connect-2.c@ 331

Last change on this file since 331 was 331, checked in by coas-nagasima, 6 years ago

prototoolに関連するプロジェクトをnewlibからmuslを使うよう変更・更新
ntshellをnewlibの下位の実装から、muslのsyscallの実装に変更・更新
以下のOSSをアップデート
・mruby-1.3.0
・musl-1.1.18
・onigmo-6.1.3
・tcc-0.9.27
以下のOSSを追加
・openssl-1.1.0e
・curl-7.57.0
・zlib-1.2.11
以下のmrbgemsを追加
・iij/mruby-digest
・iij/mruby-env
・iij/mruby-errno
・iij/mruby-iijson
・iij/mruby-ipaddr
・iij/mruby-mock
・iij/mruby-require
・iij/mruby-tls-openssl

  • Property svn:eol-style set to native
  • Property svn:mime-type set to text/x-csrc
File size: 530 bytes
Line 
1#include <stdio.h>
2
3#if defined _WIN32 && !defined __TINYC__
4# define _ "_"
5#else
6# define _
7#endif
8
9int x3(void)
10{
11 printf(" x3");
12 return 3;
13}
14
15/* That callx4 is defined globally (as if ".globl callx4")
16 is a TCC extension. GCC doesn't behave like this. */
17void callx4(void);
18__asm__(_"callx4: call "_"x4; ret;"
19#ifndef __TINYC__
20 " .global "_"callx4"
21#endif
22);
23
24extern void x5(void);
25
26void callx5_again(void);
27void callx5_again(void)
28{
29 x5();
30 asm("call "_"x6");
31}
32
33static void x6()
34{
35 printf(" x6-2");
36}
Note: See TracBrowser for help on using the repository browser.