zayac / hera-mcst

Automatically exported from code.google.com/p/hera-mcst
0 stars 0 forks source link

Defect with compiler - error appears compiling without -S option #15

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
The attached file "test1,c" is considered

Then it is compiled by lcc like this 
#./lcc -S test1.c
All ok. We get file "test1.s"
But then we run 
#./lcc test1.c
It gives us errors:
[nick@arch lcc]$ ./lcc test1.c
/tmp/lcc40461.s: Assembler messages:
/tmp/lcc40461.s:3: Error: no such instruction: `set %r1,5'
/tmp/lcc40461.s:5: Error: no such instruction: `return'

Original issue reported on code.google.com by nikolay....@frtk.ru on 10 Apr 2011 at 5:11

Attachments:

GoogleCodeExporter commented 9 years ago
Дело в том, что драйвер lcc использует 
штатный ассемблер - то есть ассемблер для 
х86, что, конечно, нам не нужно. Когда 
основная работа по компилятору будет 
сделана, можно, конечно, подхачить lcc, чтобы 
он брал наш ассемблер.
Пока же нужно компилировать с опцией -S и 
вызывать ассемблер отдельно.

Original comment by diman...@gmail.com on 11 Apr 2011 at 11:25

GoogleCodeExporter commented 9 years ago

Original comment by zemlia...@frtk.ru on 18 Apr 2011 at 3:06