Epson S5U1C17001C Manual page 98

Cmos 16-bit single chip microcomputer, c compiler package for s1c17 family
Hide thumbs Also See for S5U1C17001C:
Table of Contents

Advertisement

3 SOfTWarE DEVElOPMEnT PrOCEDUrES
Discussed below is the relationship between sections and actual memory locations.
Example source files
(file1.s)
.section .rodata
.global BOOT
.align 2
.long BOOT
.long UNALIGN
.long EXCEPTION
:
:
.text
BOOT:
xld.a
%sp, 0x3f00
:
:
(file2.s)
:
.data
:
:
.rodata
:
:
(file3.c)
:
#include <string.h>
int
i_bss;
int
i_data = 1;
const
int
i_rodata = 0x12345678;
const
char
sz_rodata[] = "ABCDEFGH";
:
int main()
{
char sz_buf[10];
int
i;
for( i = 0; i < 5; ++i ){
}
:
:
return 0;
}
3-68
; .rodata section
; 0x00 reset
; 0x01 unalign
; 0x02 nmi
; .text section
; set SP
;.data section
;.rodata section
sz_buf[i] = sz_rodata[i];
EPSOn
/* .bss section */
/* .data section */
/* .rodata section */
/* .rodata section */
/* .text section */
(C COMPilEr PaCkagE fOr S1C17 faMily) (Ver. 1.5.0)
S5U1C17001C ManUal

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the S5U1C17001C and is the answer not in the manual?

Subscribe to Our Youtube Channel

Table of Contents