Repository navigation
Replies: 2 comments
|
in short answer: in theory - yes, In practice I didn't try many different "targets". The only targets which I tried were "x86, x64, Wasm32, Wasm64" and I am sure "arm64" will work. any 32-bit platforms required extra testing. |
|
An update, since a lot has changed since the short answer above. 32-bit targets work now. The compiler takes pointer width and data layout from You don't need a garbage collector. Pick the memory model with
The runtime you'd have to supply is small. The Things to keep in mind at ~32K:
If you try it on a real board (Cortex-M or RISC-V), please open an issue with the triple and whatever breaks. A bare-metal target is the next thing worth testing. |
Uh oh!
There was an error while loading. Please reload this page.
interesting project....
my use-case targets resource-constrained embedded MCUs with ~32K of memory, which today are programmed in "bare-metal" C code....
were i to "constrain" my use of typescript to require a very minimal runtime, could i in theory use
tscwith any target supported by LLVM???All reactions