Electronic Components Datasheet Search
  English  ▼
ALLDATASHEET.NET

X  

AN3350 Datasheet(PDF) 63 Page - STMicroelectronics

Part # AN3350
Description  eTPU compiler tools
PDF  185 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Manufacturer  STMICROELECTRONICS [STMicroelectronics]
Direct Link  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

AN3350 Datasheet(HTML) 63 Page - STMicroelectronics

Back Button AN3350 Datasheet HTML 59Page - STMicroelectronics AN3350 Datasheet HTML 60Page - STMicroelectronics AN3350 Datasheet HTML 61Page - STMicroelectronics AN3350 Datasheet HTML 62Page - STMicroelectronics AN3350 Datasheet HTML 63Page - STMicroelectronics AN3350 Datasheet HTML 64Page - STMicroelectronics AN3350 Datasheet HTML 65Page - STMicroelectronics AN3350 Datasheet HTML 66Page - STMicroelectronics AN3350 Datasheet HTML 67Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 63 / 185 page
background image
AN3350
Working with the assembler
Doc ID 018512 Rev 2
63/185
Directives begin with the decimal character (.) and feature syntax similar to that of
instructions. A label preceding a directive is not considered part of the directive.
10.4.1
Memory spaces and sections
A section is a continuous memory block. Sections are basic logical units you can use to
organize code and data into groups, controlling size, content and starting point of each
group or section. At loading time, the content of the user-defined logical sections and
possible system-added extra sections are loaded into actual memory segments.
eTPU architecture has two types of memory space and each loadable section belongs to
exactly one of them. Defining code or data from outside a section is not allowed:
●
Code Space (denoted c) is intended for instruction storage. It features a 32-bit access
width, within which the 32 bits instructions are stored (aligned to 4 bytes addresses).
The address range for this space is 24 bits.
●
Data Space (denoted d) is used to load and store data. It also has an access width of 8
bits and an address range of 24 bits.
Note:
Debug and other unloadable sections do not relate to a physical memory space and have an
imaginary access width of 8 bits.
Use of the term address should be understood as a shortcut to the full address. The latter is
space:addr
in which addr is the integer location for the word to be found in the space
memory space. For example: 'nop at c:57' is the instruction NOP located at address 57
in the code memory space. In most cases, however, there is no need for a space reference
as it is uniquely inferred by the instruction. The only time space names are explicitly
mentioned is when a memory space is assigned to a section using the .org address or
the .section sec directive.
Sections can be either relative or absolute. Relative sections are declared by name and
space (using the .section sec directive) and are assigned an address during the linking
stage. Section names are symbols. When the memory space is omitted, the section is
considered a code section. Some predefined special sections (as well as absolute sections,
defined below) used by the Elf and Dwarf2 binary formats have names that begin with the
dot character ('.'). As an exception, these sections might also be pre-assigned to a space
(for example, the .data section will be loaded as data).
Absolute sections are declared using the.org address directive. They are nameless - the
name is automatically built from space and address characteristics - but must have a known
memory space and address. When the memory space is omitted it is assumed to be the
code space. .org sections can not be repeated, however - other address overlaps
between absolute sections will be checked and flagged by the linker tool.
Upon meeting a relative section directive, the following content is added (without alignment)
at the end of the section portion generated so far.
.org
sections, on the other hand, can not be repeated. The .previous directive can be
used to switch back and forth between any two sections. Address overlaps between all
sections will be checked and flagged by the linker tool.
10.4.2
Data storage
Each code statement stores 4 bytes into memory. Data can be stored in different sizes and
ways.



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100  ...More


Datasheet Download

Go To PDF Page


Link URL



Does ALLDATASHEET help your business so far?  [ DONATE ] 

About Alldatasheet   |   Advertisement   |   Contact us   |   Privacy Policy   |   Link to Datasheet    |   Link Exchange   |   Manufacturer List
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
Russian : Alldatasheetru.com  |   Korean : Alldatasheet.co.kr  |   Spanish : Alldatasheet.es  |   French : Alldatasheet.fr  |   Italian : Alldatasheetit.com
Portuguese : Alldatasheetpt.com  |   Polish : Alldatasheet.pl  |   Vietnamese : Alldatasheet.vn
Indian : Alldatasheet.in  |   Mexican : Alldatasheet.com.mx  |   British : Alldatasheet.co.uk  |   New Zealand : Alldatasheet.co.nz
Family Site : ic2ic.com  |   icmetro.com