This option sets the default near/far attribute of ROM data to far.
The default near/far attribute of ROM data is determined by the -memory_model option setting.
This option changes the near/far attribute for ROM data, which is specified by the memory model, to far. |
When this option is specified and a pointer points to const data, the near/far attribute of this pointer is far. However, when a pointer points to non-const data, its attribute is near. Therefore, though in violation of the C90 and C99 standard, the pointer size depends on whether the pointer points to const data. This option should be used on this understanding. |
When a standard library functionNote using a pointer to a const variable as a parameter is linked, it is replaced with a standard library function for a far pointer by "#if defined(__FAR_ROM__)" in the standard header. |
puts, perror, atof, atoff, strtod, strtof, atoi, atol, strtol, strtoul, bsearch, qsort, memcpy, memmove, memcmp, memchr, memset, strcpy, strncpy, strcat, strncat, strcmp, strncmp, strchr, strcspn, strpbrk, strrchr, strspn, strstr, strlen |
To change the near/far attribute for ROM data, which is specified by the memory model, to far, describe as: |