[Self-interest] C preprocessor for asm

Valery Ushakov uwe at stderr.spb.ru
Fri Jan 20 13:44:29 UTC 2023


On Fri, Jan 20, 2023 at 10:32:59 +0100, Tobias Pape wrote:

> Some ten years ago I ran into similar problems,
> even though clang was "younger" then and GCC a bit different.
> 
> I wrote about that here:
> 	https://blog.selflanguage.org/2012/07/02/assembler-woes/
[...]
> All .S files (capital S) are passed through CPP anyway
> 
> I don't know whether there's a huge loss wenn switching from
> assembler macros to preprocessor...
> 
> So why not?

This is what I ended up with:

https://github.com/russellallen/self/pull/136/commits/f4b0a92e5467b4e76bb7dc9c639fb1c420d1368c

-uwe


More information about the Self-interest mailing list