zayac / hera-mcst

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

Error in test2.c #20

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Steps to reproduce problem:
1. Code of test2.c in /source/:
int main()
{
    int a=1;
    int b=2;
    if (a>b)
        return a*b;
    return a+b;
}

2. sudo ./test.sh

3. Error text:
-------------------./source/test2.c
----------------asm----./source/test2.c
.././source/test2.s. Warning in line 0: ".section ".text"". Section detected.
main: 0
.././source/test2.s. Error in line 8: "br %r13"
.L2: 10
.L1: 11

Original issue reported on code.google.com by ryf...@gmail.com on 17 Apr 2011 at 8:34

GoogleCodeExporter commented 9 years ago
Рустем, из вывода ошибки невозможно 
воспроизвести строки компиляции теста 
ручками.
Должны печататься строки запуска 
компилятора и ассемблера. Это позволяет:
1) Запустить проблемную программу отдельно 
от тестирования, в т.ч. в отладчике
2) Убедиться, что проблема именно в asm (lcc и 
т.д.), а не в test.sh

Original comment by diman...@gmail.com on 18 Apr 2011 at 1:08