I thing it should generate a warning. but it doesn't. C51 COMPILER V8.16 Compiler settings: level=2
#include<something.h>
my_strange_global_variable = 1;
void main(void) { ...; }
C51 COMPILATION COMPLETE. 0 WARNING(S), 0 ERROR(S)
When talking about standard definitions: Please define what you mean by "why our compiler".
You do realize that this is a forum for end users, and that Keil staff _may_ read some of the posts?
"...every compiler I know acts differently on that code..."
With that little amount of code, there would be very few possible ways for a compiler to treat it.
Can only assume you've only actually tried it on precious few compilers.
Thank you for reminding me that. I'm a little bit nervous because of hazy answers I get.
I'm a little bit nervous because of hazy answers I get.
The answers you got were razor sharp. You are the one the provided inadequate information!
How is that?