Quantcast
Viewing all articles
Browse latest Browse all 3049

C51: Is there a way to make the C51 compiler use memory-specific pointers by default? (1 Replies)

Is there a way to make the C51 compiler use xdata memory-specific pointers as the default instead of generic pointers? C source code that could otherwise be portable to other platforms has to have xdata keywords sprinkled all over the place. Thereby making the source code no longer portable. Assume the following example code: // Forward reference typedef struct request_block req_t; // A hypothetical request block struct request_block { int cmd; int pa

Viewing all articles
Browse latest Browse all 3049

Trending Articles