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
Announcements
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
Support
Open a support case
Documentation
Downloads
Training
Arm Approved program
Arm Design Reviews
Community Help
More
Cancel
Developer Community
Tools and Software
Software Tools
Jump...
Cancel
Software Tools
Arm Development Studio forum
ARM CORTEX A8 : use of fpack-struct compiler directive
Tools, Software and IDEs blog
Forums
Videos & Files
Help
Jump...
Cancel
New
Replies
3 replies
Subscribers
126 subscribers
Views
2131 views
Users
0 members are here
Related
ARM CORTEX A8 : use of fpack-struct compiler directive
Offline
shashikumar MS
over 7 years ago
Note: This was originally posted on 27th May 2009 at http://forums.arm.com
Hi,
I am compiling an application with arm linux gcc version 4.2.3 (Sourcery G++ Lite 2008q1-126) with the compiler directive's.
I want to optimize this application for the ARM and I am not suppose to use DSP.
[font="Courier New"]
arm-linux-gcc ../Src/*.c ../Src/SimdFunctions.s ../Src/getRectSubPix.s -DOPT_WIN_SIZE -DENABLE_SIMD_GETRECTSUBPIX -DUSE_SIMD -DUSE_SIMD_DAVID -I ../Inc -mcpu=cortex-a8 -mfpu=neon -Wa,-mfpu=neon -mfloat-abi=softfp -o ../Obj/opt_blink.out -O3 -fpack-struct -freorder-blocks-and-partition -lm -lc -lgcc -ftree-vectorize[/font]
after compilation total number of lines of assembly code generated is 35563.
If i remove the compiler directive -fpack-struct the total number of lines of assembly code is 22354.
I checked this by writing a small C program which updates the structure that consists of 3 integer elements. consider if i want to write 55, 66, 77 to these three elements then
with -fpack-sturct directive the program uses byte store to store 55, 66, 77 and then fills the remaining bytes with zeros which generates around 20 lines of assembly code
whereas without -fpack-sturct it writes directly to the location and the assembly generated is is of about 5 lines.
Also help me in any compilation directives to be given to optimize even more.
thanks and regards
Shashi
shashi.ms@samsung.com
Parents
Offline
shashikumar MS
over 7 years ago
Note: This was originally posted on 27th May 2009 at
http://forums.arm.com
Hi,
Thanks for the reply at the earliest.
I need not pack as most of the structures are defined in such a way that holes are not left in between.
we have done lots of c optimization in this application. are there any new compilation directives which can give more optimization for speed ?
Cancel
Up
0
Down
Reply
Cancel
Reply
Offline
shashikumar MS
over 7 years ago
Note: This was originally posted on 27th May 2009 at
http://forums.arm.com
Hi,
Thanks for the reply at the earliest.
I need not pack as most of the structures are defined in such a way that holes are not left in between.
we have done lots of c optimization in this application. are there any new compilation directives which can give more optimization for speed ?
Cancel
Up
0
Down
Reply
Cancel
Children
No data
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
Answered
Errors while importing CCS project into IAR project
+1
Arm Compiler
458
views
1
reply
Latest
1 month ago
by
Andy Neil
Answered
Connecting to multiple cores with command line debugger?
0
DS-5 Debugger
1321
views
2
replies
Latest
1 month ago
by
Alex Earl
Answered
ARM Toolchain Visual Studio Code
+1
1500
views
6
replies
Latest
1 month ago
by
Andy Neil
Answered
Automation for IAR build and run
+1
1614
views
1
reply
Latest
1 month ago
by
Stephen Theobald
Answered
index are changing with the voltage apply to the adc
+1
1986
views
2
replies
Latest
1 month ago
by
Vishal_Patel
<
>
View all questions in Arm Development Studio forum