Renesas Technology, Tools FAQs
Last Updated: February 4, 2000
Document Number: 01051087_e
Q.
In what order are the global variables and functions assigned to the memory during a link?
A.
The guidelines for memory assignments during a link are complicated due to the linking order of objects (~.mo) and the specifying
order of libraries. For reference purposes, we offer the following operation outline for the current version.
Guideline for Compiler:
In each section, variables and functions are grouped in order of size (1, 2, 4 or larger than 4).
If there are 2 variables of the same size, the order is determined according to the contents of the compiler process.
●
Guideline For Assembler:
Same conditions as described in the assembler source.
●
Guideline For Link:
First, functions and variables are grouped into sections, sections are assigned according to specifications, such as -SEC. (If
there is no specification indicated, sections are grouped according to the order they were received in.)
Each section is assigned internally as follows:
Library: in order of object detection
❍
Multiple objects specified in command line: in order of object specified for being linked (~.mo file)❍
Single object file: assignment order according to variable appearance❍
●
Top of Page | Back to Previous Page
Terms of Use Privacy Policy
(C)2004 Renesas Technology Corp., All Rights Reserved.
Comentarios a estos manuales