How can I cross-compile C code for Cyrix Cx486DX?

This question says it all. I need to cross compile the Cyrix processor. The system the compiler should work with (it doesn't have to be gcc) is a 64-bit Kubuntu with an i5 processor. I could not find anything useful to play on Google, except for the information that "Cx486DX is compatible with i486 software." Therefore i ran

gcc -m32 -march=i486 helloworld.c -o helloworld486.bin

but executing helloworld486.bin on a Cyrix machine gives me a floating point exception. My knowledge of processors is rather limited, and now I have no ideas, any help will be really appreciated.

+4
source share
1 answer

, , , 486. , , , . GCC, Linux, 486- ( ), - (, crtbegin.o) 686 .

:

  • Linux, 486 , chroot. , Linux 486 - - . , () Linux?

  • - toolchain 486. . , , ( 686) , . - - Linux , ala CLFS.

    , - script, crosstool-ng.

? ? ? ?

+3

Source: https://habr.com/ru/post/1536831/


All Articles