When compiling PAL library

Forum for PAL Users and Developers

When compiling PAL library

Postby paran » Mon Jun 22, 2015 12:47 pm

Hi Everyone,
Thanks for creating this topic in the Board Index.
I decided to compile the PAL library from scratch. Using 'make check' command works fine. But compiling from scratch gives different results. There is lots of missing headers, or more correctly speaking, scattered all over SD card. Finally, when they were linked, I compiled the code with Code::Blocks and received the error.
compilation of pal library generated a build error:

||=== Build: Debug in MyProject1 (compiler: GNU GCC Compiler) ===|
/tmp/ccwMmFam.s|41|Error: bad instruction `movfs r0,COREID'|
||=== Build failed: 1 error(s), 0 warning(s) (0 minute(s), 1 second(s)) ===|

Technically, there is nothing wrong with instruction movfs. Accordingly to parallella data sheets epiphany_arch_ref.pdf, this command is written correctly. Maybe compiler in use is incorrect. Or command is case sensitive. Aren't C code supposed to be standard? Am I correct?
paran
 
Posts: 53
Joined: Sat Jun 28, 2014 5:22 pm
Location: Georgetown, Ontario, Canada

Re: When compiling PAL library

Postby sebraa » Tue Jun 23, 2015 1:07 pm

Your error message comes from the assembler, not from the C compiler.
My guess is that the C code contains some inline assembly (which the compiler will pass unchanged to the assembler), but if you run the wrong toolchain, your compiler calls the wrong assembler, which does not understand this instruction.
sebraa
 
Posts: 495
Joined: Mon Jul 21, 2014 7:54 pm

Re: When compiling PAL library

Postby paran » Tue Jun 23, 2015 1:18 pm

Thanks Sebraa. That answers the question. I will see what I can do.
paran
 
Posts: 53
Joined: Sat Jun 28, 2014 5:22 pm
Location: Georgetown, Ontario, Canada


Return to PAL

Who is online

Users browsing this forum: No registered users and 5 guests