> ok, because i am not familiar with compiler implementation. So if you can > give me some references i will appreciate you very much. And by the way is > there any plan to support this feature in the mainline?
OK, let's go ahead and implement the feature. We first need the binutils side, because a 'cas' is currently rejected by the assembler: eric@hermes:~/leon-elf> gcc/xgcc -Bgcc -c cas.adb -mcpu=leon3 /tmp/ccOuqOpo.s: Assembler messages: /tmp/ccOuqOpo.s:24: Error: Architecture mismatch on "cas". /tmp/ccOuqOpo.s:24: (Requires v9|v9a|v9b; requested architecture is v8.) /tmp/ccOuqOpo.s:47: Error: Architecture mismatch on "cas". /tmp/ccOuqOpo.s:47: (Requires v9|v9a|v9b; requested architecture is v8.) David, how do you want to handle this on the binutils side? The compiler currently passes -Av8 for LEON3 and I don't think that we want to pass -Av9 instead, so we would need something in between. -- Eric Botcazou