IPR-NIOS Altera, IPR-NIOS Datasheet - Page 173

no-image

IPR-NIOS

Manufacturer Part Number
IPR-NIOS
Description
IP NIOS II MEGACORE RENEW
Manufacturer
Altera
Type
MegaCorer
Datasheet

Specifications of IPR-NIOS

License
Renewal License
Lead Free Status / RoHS Status
Not applicable / Not applicable
Chapter 7: Application Binary Interface
DWARF-2 Definition
DWARF-2 Definition
Object Files
Relocation
Table 7–4. Nios II Relocation Calculation (Part 1 of 3)
December 2010 Altera Corporation
R_NIOS2_NONE
R_NIOS2_S16
R_NIOS2_U16
R_NIOS2_PCREL16
R_NIOS2_CALL26
Name
If the return type is larger than 8 bytes, the Nios II C/C++ compiler treats this
program as if a() had passed a pointer to b().
C/C++ compiler sees the code in
Example 7–3. Returned struct is Larger than 8 Bytes
void b(STRUCT *p_result, int i, int j)
{
}
void a(...)
{
}
Registers r0 through r31 are assigned numbers 0 through 31 in all DWARF-2
debugging sections.
Nios II object file headers contain Nios II-specific values as shown in
Table 7–3. Nios II-Specific ELF Header Values
In a Nios II object file, each relocatable address reference possesses a relocation type.
The relocation type specifies how to calculate the relocated
calculation for address relocation for each Nios II relocation type. The bit mask
specifies where the address is found in the instruction.
Member
e_ident[EI_CLASS]
e_ident[EI_DATA]
e_machine
...
*p_result = result;
STRUCT value;
...
b(*value, i, j);
Value
0
1
2
3
4
check
Overflow
Yes
Yes
Yes
n/a
No
(1)
None
S + A
S + A
((S + A) – 4) – PC
(S + A) >> 2
Example
Relocated Address
Value
ELFCLASS32
ELFDATA2LSB
EM_ALTERA_NIOS2 == 113
R
7–2.
(2)
Example 7–3
Nios II Processor Reference Handbook
address.Table 7–4
shows how the Nios II
0x003FFFC0
0x003FFFC0
0xFFFFFFC0
0x003FFFC0
Bit Mask
n/a
M
Table
7–3.
Bit Shift
lists the
n/a
B
6
6
6
6
7–9

Related parts for IPR-NIOS