OVP Forums - A community of assistance, help, questions, and answers.
  FAQFAQ    SearchSearch      RegisterRegister  ProfileProfile    Log in to check your private messagesLog in to check your private messages    Log inLog in
How to create the Elf file from target compilation process

 
Post new topic   Reply to topic    Open Virtual Platforms Forum Index -> First time - readme
View previous topic :: View next topic  
Author Message
BuiNgocHieu



Joined: 20 Jul 2021
Posts: 4

PostPosted: Fri Jul 23, 2021 5:50 am    Post subject: How to create the Elf file from target compilation process Reply with quote

Dear supporter,

1) In the ISS demo, the elf file is created by the host compiler or the cross compiler?

2) Can OPVSIm use the elf file that is created from the target compiler?

3) I am using the Greenhill compilers to compile our SW, the compilation and linking process create the final hex file, so how to set the compiler to generate the hex file?

Many thanks in advance,
Hieu
Back to top
View user's profile Send private message
BuiNgocHieu



Joined: 20 Jul 2021
Posts: 4

PostPosted: Mon Jul 26, 2021 6:02 am    Post subject: Re: How to create the Elf file from target compilation proce Reply with quote

BuiNgocHieu wrote:
Dear supporter,

1) In the ISS demo, which compiler create the elf file??

2) Can OPVSim use the elf file that is created from the target compiler (ex: GHS compiler)?

3) I am using the Greenhill compilers to compile our SW, the compilation and linking process create the final hex file, so how to set the compiler to generate the elf file?

Many thanks in advance,
Hieu
Back to top
View user's profile Send private message
JimStraus
OVP Technologist
OVP Technologist


Joined: 09 Dec 2008
Posts: 153

PostPosted: Mon Jul 26, 2021 2:09 pm    Post subject: Re: How to create the Elf file from target compilation proce Reply with quote

BuiNgocHieu wrote:
Dear supporter,

1) In the ISS demo, the elf file is created by the host compiler or the cross compiler?

The cross compiler for the target architecture being simulated using ISS
Quote:

2) Can OPVSIm use the elf file that is created from the target compiler?

OVPsim can simulate running the elf files created by a target compiler
Quote:

3) I am using the Greenhill compilers to compile our SW, the compilation and linking process create the final hex file, so how to set the compiler to generate the hex file?

Loading hex files is not recommended, as there is no symbolic debug info to support debugging.
It should be possible to get the Greenhills compiler to generate an elf file, (usually a hex file is actually generated from an intermediate elf file that the linker generates as part of the build process), and the elf file is what should be passed to the simulator using the --program argument.
If you truly cannot generate an ELF file then there is an example in $IMPERAS_HOME/Examples/SimulationControl/loadingApplicationProgramHexFormatFile that illustrates loading an elf file from a custom simulation harness (Note that iss.exe cannot be used to load a hex file)
Quote:

Many thanks in advance,
Hieu
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Open Virtual Platforms Forum Index -> First time - readme All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Information regarding OVP © 2008-2021 Imperas Software