15/02/10 9:52
Salve a tutti, volevo chiedere perchè nel momento in cui compilo un sorgente in C, utilizzando l'inline assembly in questo modo:
il compilatore (che sarebbe gcc) mi dà questi errori:
a.c: In function ‘main’:
a.c:6: error: expected ‘(’ before ‘mov’
a.c:6: error: ‘mov’ undeclared (first use in this function)
a.c:6: error: (Each undeclared identifier is reported only once
a.c:6: error: for each function it appears in.)
a.c:6: error: expected ‘;’ before ‘dl’
premetto che ho già inserito
asm mov dl,result
il compilatore (che sarebbe gcc) mi dà questi errori:
a.c: In function ‘main’:
a.c:6: error: expected ‘(’ before ‘mov’
a.c:6: error: ‘mov’ undeclared (first use in this function)
a.c:6: error: (Each undeclared identifier is reported only once
a.c:6: error: for each function it appears in.)
a.c:6: error: expected ‘;’ before ‘dl’
premetto che ho già inserito
#pragma inlineall'inizio del codice.