|
|
Log in / Subscribe / Register

Mixing safe and unsafe

Mixing safe and unsafe

Posted Oct 29, 2025 7:01 UTC (Wed) by magfr (subscriber, #16052)
In reply to: Mixing safe and unsafe by epa
Parent article: Fil-C: A memory-safe C implementation

It said in the article that you can't.
The compiler defines a new ABI and you can't link system ABI libs with it.


to post comments

Mixing safe and unsafe

Posted Oct 31, 2025 17:17 UTC (Fri) by epa (subscriber, #39769) [Link]

But that's not what I meant. I know the ABI is different. But within one compiled program, all using the new ABI, can you declare a block as "unsafe" so that the compiler won't emit instructions for bounds checking (for example) within that block?


Copyright © 2026, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds