Arm Community
Site
Search
User
Site
Search
User
Support forums
Arm Development Studio forum
How do I enable 8bit stack alignment?
Jump...
Cancel
Locked
Locked
Replies
6 replies
Subscribers
118 subscribers
Views
3772 views
Users
0 members are here
Options
Share
More actions
Cancel
Related
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion
How do I enable 8bit stack alignment?
Ionut Dinulescu
over 12 years ago
Note: This was originally posted on 20th April 2011 at
http://forums.arm.com
I'm trying to compile a C program with RVDS.
At link time, I get a lot of "myProgram.o(.text) contains invalid call from '~PRES8' function to 'REQ8' function"
I only found an asembly directive (e.g. PRESERVE8) that solves the issue for the .s files but not for c source files.
Is there any linker option that solves this problem?
Ionut Dinulescu
over 12 years ago
Note: This was originally posted on 20th April 2011 at
http://forums.arm.com
--apcs /noswst/interwork/fpic
Cancel
Vote up
0
Vote down
Cancel
Ionut Dinulescu
over 12 years ago
Note: This was originally posted on 20th April 2011 at
http://forums.arm.com
Are you calling any library functions or any function which are written in assembly langauge?
Nope ... all of the functions are written in C.
What I do is compile a library with RVCT 3.1 and compile the application with RVCT 4.0 (some customer request)
If I compile everything with 4.0 or 3.1, everything works fine.
Cancel
Vote up
0
Vote down
Cancel
Ionut Dinulescu
over 12 years ago
Note: This was originally posted on 20th April 2011 at
http://forums.arm.com
The compiler options for both lib and application are: --apcs /noswst/interwork/fpic --littleend -Otime -O3 --forceinline
Cancel
Vote up
0
Vote down
Cancel
Martin Weidmann
over 12 years ago
Note: This was originally posted on 20th April 2011 at
http://forums.arm.com
That is a bit odd, as 8-byte stack alignment should be default setting.
What compiler flags are you specifying? Specifically, are you specifying anything like "--apcs="?
Cancel
Vote up
0
Vote down
Cancel
Junaid Kk
over 12 years ago
Note: This was originally posted on 20th April 2011 at
http://forums.arm.com
Are you calling any library functions or any function which are written in assembly langauge?
Cancel
Vote up
0
Vote down
Cancel
Junaid Kk
over 12 years ago
Note: This was originally posted on 20th April 2011 at
http://forums.arm.com
ok,
Compiler settings for the both are same? Are u using PCS-options ?
Cancel
Vote up
0
Vote down
Cancel