logoalt Hacker News

rererereferredyesterday at 8:45 AM1 replyview on HN

That would also help use Rust in platforms that only have a C compiler.


Replies

galangalalgolyesterday at 3:03 PM

People have used mrustc like that to put rust on a c64. The number of targets that make sense from a word length perspective that aren't already supported by llvm are pretty small I think? You aren't going to compile rust to some fixed point dsp where a long is 48bits. The c anything is likely to generate won't compile in whatever odd not-quite-ansi c compiler the chip maker provides.