mir icon indicating copy to clipboard operation
mir copied to clipboard

Initial armv7 support.

Open RussellHaley opened this issue 4 years ago • 3 comments

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.

RussellHaley avatar Feb 14 '21 06:02 RussellHaley

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!

RussellHaley avatar Feb 14 '21 08:02 RussellHaley

Good job

lygstate avatar Feb 15 '21 06:02 lygstate

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!

RussellHaley avatar Feb 16 '21 06:02 RussellHaley