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?

没有正确的解决方案

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top