From: Philipp K. K. <pk...@sp...> - 2024-07-09 19:52:03
|
Am 09.07.24 um 16:07 schrieb Steve Schnepp: > What does "flexible calling convention in the compiler" mean ? > Not saying practical, but would it be doable to have a fully flexible > calling convention ? > > something akin to > > __reg(a) char my_add( __reg(a) char first, __reg(r0) char second) { > return first + second; > } AFAIR, there was a similar discussion when we worked on calling conventions for z80. Since the calling convention does not make a difference inthe abstract machine, it would probably be a good idea to use C23 attributes instead of inventing new syntax. But for that we'd need to improve our support of C23 attributes in the frontend first. Philipp |