News for hackers. Stuff that matters.
Re:Rules to avoid common extended inline assembly mistakes by kccqzy on Friday December 20, 2024 @10:31PM (#42477331)
I haven't used CodeWarrior for PowerPC, but that approach sounds like it requires the C compiler to understand the assembler instructions you are using. Is it? But most use cases of inline assembler I've seen these days is for using instructions that the compiler will not emit.
Re:Rules to avoid common extended inline assembly mistakes by tom_ on Sunday December 22, 2024 @07:33AM (#42485954)
Yes, but just because the C compiler doesn't emit them, that doesn't mean it can't understand them. If there are already tables for the assembler, specifying acceptable addressing modes and encodings, those can probably be reused - though that might require the designers to think of the toolchain as a cohesive whole. I don't think would automatically be a bad thing.