From: Vladimir Gurevich <vag@paulidav.org>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] Compiler optimizations and debugging
Date: Thu, 20 Mar 2003 09:34:25 -0800 [thread overview]
Message-ID: <3E79FBA1.2090707@paulidav.org> (raw)
In-Reply-To: 5.1.1.6.0.20030320104504.00a81840@dns.struinfo.it
Hello llandre,
llandre wrote:
> To make the step-by-step debugging easier with GDB/DDD, I removed the
> optimization flag "-Os" from the config.mk file. In fact, with the
> optimization turned on, the code seems not to be executed sequentially
> inside code window. However, without the -Os flag, the linker is unable
> to complete the build:
>
> Why is the -Os flag absolutely necessary?
Because the functions you are missing now (like out_8, in_32, etc.)
are, in fact, inline functions. You need -O{something} to enable them.
As far as "non-sequential" code execution in the debugger, you
can try to ADD the following flags to gcc command line:
-fno-schedule-insns -fno-schedule-insns2
This should disable instruction reordering (as well as slow down
the execution quite noticeably since your pipeline will be stalled
too often).
Oh, and in any case (with or without -fno-schedule-insns) your
code is executed correctly.
Best regards,
Vladimir
next prev parent reply other threads:[~2003-03-20 17:34 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-03-20 10:05 [U-Boot-Users] Compiler optimizations and debugging llandre
2003-03-20 10:55 ` Wolfgang Denk
2003-03-20 17:19 ` llandre
2003-03-20 17:34 ` Vladimir Gurevich [this message]
2003-03-20 18:01 ` Wolfgang Denk
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3E79FBA1.2090707@paulidav.org \
--to=vag@paulidav.org \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.