fork download
  1. #include <stdio.h>
  2.  
  3. #define COMPILING_CORE 1
  4. # if (COMPILING_CORE == 0)
  5. # define PSP /**/
  6. # elif (COMPILING_CORE == 1)
  7. # define PSP __attribute__((__section__(".psram_text_cpu1")))
  8. # elif (COMPILING_CORE == 2)
  9. # define PSP __attribute__((__section__(".psram_text_cpu2")))
  10. # elif (COMPILING_CORE == 3)
  11. # define PSP __attribute__((__section__(".psram_text_cpu3")))
  12. # elif (COMPILING_CORE == 4)
  13. # define PSP __attribute__((__section__(".psram_text_cpu4")))
  14. # elif (COMPILING_CORE == 5)
  15. # define PSP __attribute__((__section__(".psram_text_cpu5")))
  16. # endif
  17. #define ITCM PSP
  18. #define STRINGIFY2(string) #string
  19. #define STRINGIFY1(string) (STRINGIFY2(string))
  20. int main(void) {
  21. // your code goes here
  22. printf("%s\n", STRINGIFY1(PSP));
  23. printf("%s\n", STRINGIFY1(ITCM));
  24. return 0;
  25. }
  26.  
Success #stdin #stdout 0.01s 5288KB
stdin
Standard input is empty
stdout
__attribute__((__section__(".psram_text_cpu1")))
__attribute__((__section__(".psram_text_cpu1")))