ASDAlexander77 / TypeScriptCompiler

TypeScript Compiler (by LLVM)
MIT License
588 stars 28 forks source link

How to inline asm ? #93

Closed zswDev closed 2 months ago

zswDev commented 7 months ago

I want to implement syscall, Inline compilation required, 1、linux syscall

ASDAlexander77 commented 6 months ago

if you compile all into EXE(executable) file

1) create C file with all functions u need to do 2) add declare function (p1: TypeOf<1>) etc 3) when compile code add OBJ file from C file

done.

have a look into \docs\how\ to see how to use TSC with C/C++ compilers