• Allocate functions in a specified memory range
    Hi I'm using uVision2 with the C166 compiler and a C165 Controller. I like to allocate the programcode of some functions in a specified memory range. I've a basic system in the memory range 00'0000h...
  • Query about Function Argument and Memory Allocation
    #include<reg51.h> void fun(char,int,long); main() { step 1 fun(0xdd,0xaabb,0xfedcba); } step 2 void fun(char cc,int ii,long ll) { int i=0xabcd; char c=0x77; long l=0xabcdef; while(1); return;...
  • Allocate functions in a specified memory range
    Hi I'm using uVision2 with the C166 compiler and a C165 Controller. I like to allocate the programcode of some functions in a specified memory range. I've a basic system in the memory range 00'0000h...
  • Query about Function Argument and Memory Allocation
    #include<reg51.h> void fun(char,int,long); main() { step 1 fun(0xdd,0xaabb,0xfedcba); } step 2 void fun(char cc,int ii,long ll) { int i=0xabcd; char c=0x77; long l=0xabcdef; while(1); return;...
  • Whiy do memory allocation functions return a void pointer ?
    The answer seems obvious, but considering this MISRA rule Rule 11.5 A conversion should not be performed from pointer to void into pointer to object would it not be safer to have memory allocation...