Arm Community
Site
Search
User
Site
Search
User
Groups
Arm Research
DesignStart
Education Hub
Graphics and Gaming
High Performance Computing
Innovation
Multimedia
Open Source Software and Platforms
Physical
Processors
Security
System
Software Tools
TrustZone for Armv8-M
中文社区
Blog
Artificial Intelligence
Automotive
Healthcare
HPC
Infrastructure
Innovation
Internet of Things
Machine Learning
Mobile
Smart Homes
Wearables
Forums
All developer forums
IP Product forums
Tool & Software forums
Pelion IoT Platform
Activity
Support
Open a support case
Documentation
Downloads
Training
Arm Approved program
Arm Design Reviews
More
Cancel
Developer Community
IP Products
System
Jump...
Cancel
System
SoC Design forum
app crashes when compiled with OTime O3 using RVDS 4.0
Blogs
Forums
Videos & Files
Help
Jump...
Cancel
New
State
Not Answered
Replies
3 replies
Subscribers
71 subscribers
Views
2311 views
Users
0 members are here
AMBA
Bus Architecture
AHB
Related
app crashes when compiled with OTime O3 using RVDS 4.0
Offline
pradipig pradipig
over 6 years ago
Note: This was originally posted on 1st December 2008 at
http://forums.arm.com
Hi,
I am using RVDS 4.0 trial version. When I compile my app using OTime O3 compiler flag, the application crashes. But if I specify O2 then it is working properly.
My compiler flags are :
-DRVCT -DDYNAMIC_APP -DBREW --cpu=ARM926EJ-S --apcs=/ropi/interwork/norwpi -c -Otime -O2 --littleend --split_sections -zo
My linker flags are:
--split --reloc --entry AEEMod_Load --first AEEMod_Load --callgraph
please do let me know if i need to specify anything else in the compiler/linker flag options
0
Offline
Jacob Bramley
over 6 years ago
Note: This was originally posted on 1st December 2008 at
http://forums.arm.com
There are a a couple of likely explanations:
When you compile with "-O3", the compiler uses multifile compilation by default. Where multifile compilation causes problems, it generally does so at compile time, though it might be worth adding the "-no_multifile" switch to check. If you're compiling one file at a time, this won't make any difference.
As you might expect, "-O3 -Otime" will produce larger code than "-O2 -Otime" as it aggressively optimizes for speed at the cost of code size. Thus, it's possible that your binary image has crossed a page boundary or exceeded some other size limit.
Have a look at the RVCT reference manual to see if the side-effects of your options can cause the problems you are seeing in your specific system. "-Otime" is documented [url="
http://infocenter.arm.com/help/topic/com.arm.doc.dui0348b/CIHCBJIF.html
"]here[/url], and "-O3" is documented [url="
http://infocenter.arm.com/help/topic/com.arm.doc.dui0348b/CIHGFGFB.html
"]here[/url].
I hope that helps,
Jacob
Cancel
Up
0
Down
Accept answer
View discussion
Cancel
0
Offline
Jacob Bramley
over 6 years ago
Note: This was originally posted on 1st December 2008 at
http://forums.arm.com
In addition, it's also possible that you've done something in your code which isn't guaranteed to do what you think. The C specification is quite vague about a number of things, and turning up the optimization level can expose bugs in which the code makes assumptions about how data will be stored or handled. Finding these bugs can be very difficult.
Cancel
Up
0
Down
Accept answer
View discussion
Cancel
0
Offline
bsr1100
over 6 years ago
Note: This was originally posted on 5th December 2008 at
http://forums.arm.com
I had same issues with RVDS 3.1, my application used to crash in -O3 -Otime optimization settings but worked fine till -O2. After applying the patch for the RVCT available on the ARM site it worked totally fine.
RVDS 4.0 is quite new and I guess it might take some time for them to come up with patches for the same ( If its required at all in the first place ). I dont know if u could fix the problem from Jacob`s suggestion, but this is another perspective to a similar problem.
check out if any patches are available.
Cancel
Up
0
Down
Accept answer
View discussion
Cancel
More questions in this forum
By title
By date
By reply count
By view count
By most asked
By votes
By quality
Descending
Ascending
All recent questions
Unread questions
Questions you've participated in
Questions you've asked
Unanswered questions
Answered questions
Questions with suggested answers
Questions with no replies
Not Answered
AXI4 transaction attributes
0
195
views
0
replies
Started
6 days ago
by
Ravi V.
Suggested Answer
AMBA 5 CHI Link Layer (L-Credit Return)
0
AMBA 5 CHI
CHI
Cache Coherent Interconnect
AMBA 5
1795
views
3
replies
Latest
7 days ago
by
Christopher Tory
Answered
Is AXI4 Ordered write observation used to support PCIE Producer/Consumer ordering model?
0
AXI4
329
views
1
reply
Latest
8 days ago
by
Christopher Tory
Not Answered
BUSY transfer just before the last transfer in a burst by a AHB Master.
0
1324
views
1
reply
Latest
23 days ago
by
Colin Campbell
Not Answered
AMBA AXI reset
0
AMBA
AXI
7738
views
3
replies
Latest
23 days ago
by
Colin Campbell
>
View all questions in SoC Design forum