MIPS asm to C: How to set .section directives

380 views Asked by At

So I'm trying to make an exception handler for the NIOS II Audio Core in C.

I'm wondering how do I convert...

.section .exceptions, "ax"

... from MIPS asm to C?

I know this...

attribute ((section(".exceptions)))

is equivalent to...

.section .exceptions

but how do I include the .section directives?

I've tried this...

attribute ((section(".exceptions, \"ax\"")))

but the compiler doesn't like anything after the s in exceptions.

Any ideas?

0

There are 0 answers