DeVault: Announcing the Hare programming language
DeVault: Announcing the Hare programming language
Posted May 4, 2022 14:24 UTC (Wed) by khim (subscriber, #9252)In reply to: DeVault: Announcing the Hare programming language by wtarreau
Parent article: DeVault: Announcing the Hare programming language
> I'm using more and more asm() statements to prevent the compiler from lurking into what I'm doing ?
Yes, absolutely.
> I don't think so.Why no? You said you want to “use my processor and OS for the purpose they were built” and in C all such code have to live in asm block.
The fact that it took so long for you to realize that is kinda unfortunate, but why would you perceive it as a bad thing?
> It feels like one day my whole C code will only be a bunch of macroes based on asm() statements.If you insist on using non-portable construct in every line of code then sure, that's the proper outcome.
> That's not my goal when I'm using a C compiler, really.That's the only proper way to write non-portable code in C. It makes non-portable code look like a portable code which is obviously a good thing.
