Arm Community
Site
Search
User
Site
Search
User
Support forums
Keil forum
This code cannot be compiled
Jump...
Cancel
State
Accepted Answer
Replies
3 replies
Subscribers
23 subscribers
Views
149 views
Users
0 members are here
Options
Share
More actions
Cancel
Related
How was your experience today?
This code cannot be compiled
Karmylr
5 days ago
#include "reg51.h" void main(void) { P1 = 0x00; int a = 0; }
This code cannot be compiled("1.c(5): error C141: syntax error near 'int', expected '__asm'").
Top replies
Hans Schneebauer
5 days ago
in reply to
Karmylr
+2
verified
The C51 compiler basically supports the old ANSI C standard C90 with some extensions for the 8051 architecture. The C90 standard does not allow defining local variables after executable statements within...