mir
mir copied to clipboard
Initial armv7 support.
This pull request is just to get comments.
Sooo. I essentially copied over the Aarch64 files, added the appropriate machine dependant files and renamed "a couple of structs".
Next I ran gcc -dM -E - < /dev/null
and copied that into c2mir/armv7/mirc_armv7_linux.h
. I built and ran but I received an error. It did not segfault.
I am using a different build tool called xmake, the build file is stashed in my russellhaley/mircVM project.
Output:
debian@beaglebone:~/git/mircVM/build/linux/armv7a/release$ ls
b2ctab b2m c2m cvm libmir.a m2b run-test.lua sieve.mir
debian@beaglebone:~/git/mircVM/build/linux/armv7a/release$ lua run-test.lua
File: /home/debian/git/mircVM//files/C/sieve.c
pwd; ./c2m -S -o sieve.mir /home/debian/git/mircVM//files/C/sieve.c; ./cvm sieve.mir
/home/debian/git/mircVM/build/linux/armv7a/release
<environment>:55:9: standard macro __has_include redefinition
<environment>:11:9: warning -- different macro redefinition of __STDC_VERSION__
stdint.h:44:9: warning -- different macro redefinition of __INT64_C
stdint.h:45:9: warning -- different macro redefinition of __UINT64_C
/usr/include/stdio.h:27:10: error in opening file bits/libc-header-start.h
Failed to get the module items
That's all folks.
This is the current message:
debian@beaglebone:~/git/mircVM/build/linux/armv7a/release$ ./c2m -v -S -o sieve.mir /home/debian/git/mircVM//files/C/sieve.c;
C2MIR init end -- 3635 usec
/usr/include/stdio.h:27:10: error in opening file bits/libc-header-start.h
Stackoverflow implies this is a 64/32 bit issue: https://stackoverflow.com/questions/54082459/fatal-error-bits-libc-header-start-h-no-such-file-or-directory-while-compili
I'll dig again tomorrow or Monday. Cheers!
Good job
A surprising number of the tests that build with cmake run correctly. Anyway, I'll leave it at that until you can come up for air. Fun stuff!