public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/43102] New: ARM V6 (Cortex-M1) Unable to jump from assembly to C code while debuging.
@ 2010-02-17 4:28 josiejoppen at gmail dot com
2010-02-17 4:44 ` [Bug target/43102] " pinskia at gcc dot gnu dot org
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: josiejoppen at gmail dot com @ 2010-02-17 4:28 UTC (permalink / raw)
To: gcc-bugs
The "bl <imm>" instruction from the assembly to a function written in 'C
language', generates an exception.
Unable to proceed..
tried all other options.
guess this is with the compiler,
--
Summary: ARM V6 (Cortex-M1) Unable to jump from assembly to C
code while debuging.
Product: gcc
Version: 4.4.1
Status: UNCONFIRMED
Severity: major
Priority: P3
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: josiejoppen at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43102
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug target/43102] ARM V6 (Cortex-M1) Unable to jump from assembly to C code while debuging.
2010-02-17 4:28 [Bug c/43102] New: ARM V6 (Cortex-M1) Unable to jump from assembly to C code while debuging josiejoppen at gmail dot com
@ 2010-02-17 4:44 ` pinskia at gcc dot gnu dot org
2010-02-17 10:09 ` rearnsha at gcc dot gnu dot org
2010-02-17 14:01 ` josiejoppen at gmail dot com
2 siblings, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2010-02-17 4:44 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from pinskia at gcc dot gnu dot org 2010-02-17 04:43 -------
Isn't the M1 a thumb2 only target or is it a combo thumb2/arm target? If it is
the later, are you sure that you don't want blx instead?
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Severity|major |normal
Component|c |target
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43102
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug target/43102] ARM V6 (Cortex-M1) Unable to jump from assembly to C code while debuging.
2010-02-17 4:28 [Bug c/43102] New: ARM V6 (Cortex-M1) Unable to jump from assembly to C code while debuging josiejoppen at gmail dot com
2010-02-17 4:44 ` [Bug target/43102] " pinskia at gcc dot gnu dot org
@ 2010-02-17 10:09 ` rearnsha at gcc dot gnu dot org
2010-02-17 14:01 ` josiejoppen at gmail dot com
2 siblings, 0 replies; 4+ messages in thread
From: rearnsha at gcc dot gnu dot org @ 2010-02-17 10:09 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from rearnsha at gcc dot gnu dot org 2010-02-17 10:09 -------
Pinskia: The M1 is best thought of as a thumb1 only processor, blx is for
jumping across instruction sets.
We need a testcase that demonstrates this problem, without one we can't help.
--
rearnsha at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |WAITING
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43102
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug target/43102] ARM V6 (Cortex-M1) Unable to jump from assembly to C code while debuging.
2010-02-17 4:28 [Bug c/43102] New: ARM V6 (Cortex-M1) Unable to jump from assembly to C code while debuging josiejoppen at gmail dot com
2010-02-17 4:44 ` [Bug target/43102] " pinskia at gcc dot gnu dot org
2010-02-17 10:09 ` rearnsha at gcc dot gnu dot org
@ 2010-02-17 14:01 ` josiejoppen at gmail dot com
2 siblings, 0 replies; 4+ messages in thread
From: josiejoppen at gmail dot com @ 2010-02-17 14:01 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from josiejoppen at gmail dot com 2010-02-17 14:00 -------
the cortex m1 is a thumb2 only target. Also the command "BLX #imm" is not
supported under ARM V6 arch. Now as a case history, I can tell the following.
Initially i had trouble getting into interrupts. i found that the functions
were running in assembly, at that time when interrupt comes; they are not able
to jump to an ISR written in "C". so i wrote the ISRs in assembly. that came
out well. later the application became bigger, now it does not branch across
functions.
this happens for a bigger piece of code only. if the code is kept small, i dont
find this. i checked the added codes seperately. as a small app..
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43102
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2010-02-17 14:01 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-02-17 4:28 [Bug c/43102] New: ARM V6 (Cortex-M1) Unable to jump from assembly to C code while debuging josiejoppen at gmail dot com
2010-02-17 4:44 ` [Bug target/43102] " pinskia at gcc dot gnu dot org
2010-02-17 10:09 ` rearnsha at gcc dot gnu dot org
2010-02-17 14:01 ` josiejoppen at gmail dot com
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).