【新增】 tcc环境

This commit is contained in:
dlaren
2025-08-21 13:18:06 +08:00
parent fea4fe6192
commit 1513c43734
100 changed files with 42487 additions and 0 deletions

20
tcc/examples/hello_dll.c Normal file
View File

@@ -0,0 +1,20 @@
//+---------------------------------------------------------------------------
//
// HELLO_DLL.C - Windows DLL example - main application part
//
#include <windows.h>
void hello_func (void);
__declspec(dllimport) extern const char *hello_data;
int WINAPI WinMain(
HINSTANCE hInstance,
HINSTANCE hPrevInstance,
LPSTR lpCmdLine,
int nCmdShow)
{
hello_data = "Hello World!";
hello_func();
return 0;
}