寄存器自动化测试说明及时使用
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

60 lines
2.9 KiB

  1. /*****************************************************************************/
  2. /* */
  3. /* LNK.CMD - V2.00 COMMAND FILE FOR LINKING C PROGRAMS */
  4. /* */
  5. /* Usage: lnk500 <obj files...> -o <out file> -m <map file> lnk.cmd */
  6. /* cl500 <src files...> -z -o <out file> -m <map file> lnk.cmd */
  7. /* */
  8. /* Description: This file is a sample command file that can be used */
  9. /* for linking programs built with the C54x C Compiler. */
  10. /* This file has been designed to work for */
  11. /* 548 C54x device. */
  12. /* Use it as a guideline; you may want to make alterations */
  13. /* appropriate for the memory layout of the target */
  14. /* system and/or your application. */
  15. /* */
  16. /* Notes: (1) You must specify the directory in which rts.lib is */
  17. /* located. Either add a "-i<directory>" line to this */
  18. /* file, or use the system environment variable C_DIR to */
  19. /* specify a search path for the libraries. */
  20. /* */
  21. /* (2) If the run-time library you are using is not */
  22. /* named rts.lib, be sure to use the correct name here. */
  23. /*****************************************************************************/
  24. MEMORY {
  25. PAGE 0: /* program memory */
  26. PROG_RAM (RWX) : origin = 0x1400, length = 0x2C00
  27. PROG_EXT (RWX) : origin = 0x8000, length = 0x4000
  28. /* boot interrupt vector table location */
  29. VECTORS (RWX): origin = 0xFF80, length = 0x80
  30. PAGE 1:
  31. DATA_RAM (RW): origin = 0x4000, length = 0x2C00
  32. DATA_EXT (RW): origin = 0x8000, length = 0x7FFF
  33. } /* MEMORY */
  34. SECTIONS {
  35. .text > PROG_RAM | PROG_EXT PAGE 0 /* code */
  36. .switch > PROG_RAM PAGE 0 /* switch table info */
  37. .cinit > PROG_RAM PAGE 0
  38. .vectors > VECTORS PAGE 0 /* interrupt vectors */
  39. .cio > DATA_RAM PAGE 1 /* C I/O */
  40. .data > DATA_RAM | DATA_EXT PAGE 1 /* initialized data */
  41. .bss > DATA_RAM | DATA_EXT PAGE 1 /* global & static variables */
  42. .const > DATA_RAM PAGE 1 /* constant data */
  43. .sysmem > DATA_RAM | DATA_EXT PAGE 1 /* heap */
  44. .stack > DATA_RAM | DATA_EXT PAGE 1 /* stack */
  45. .csldata > DATA_RAM PAGE 1
  46. } /* SECTIONS */