From: Bill Pringlemeir <bpringlemeir@nbsps.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 3/4] mtd: nand: add Freescale NFC driver
Date: Wed, 13 Aug 2014 13:11:36 -0400 [thread overview]
Message-ID: <87oavol3g7.fsf@nbsps.com> (raw)
In-Reply-To: <67d042b2f68a3b0329207452da02c7b1@agner.ch> (Stefan Agner's message of "Wed, 13 Aug 2014 18:27:14 +0200")
On 13 Aug 2014, stefan at agner.ch wrote:
> Funny is, the size is bigger in the first uninlined case... Maybe GCC
> inlined the function only for some calls, I did not checked that...
>
> With if/else
> text data bss dec hex filename
> 2395 2904 0 5299 14b3 drivers/mtd/nand/fsl_nfc.o
This is totally sensible. In some cases, the function epilogue and
prologue are actually bigger than the function body. Also, the implicit
call means that the caller must save some temporary registers (R0-R3).
For the simple nfc_read() and nfc_write(), I would expect the size to
get bigger if they are not inlined. Especially, gcc can recognize that
the same memory location is being operated on and collapse the
accesses.
Anyways, thanks for showing that the previous code was depending too
much on compiler knowledge. Your current plan sounds promising.
Regards,
Bill Pringlemeir.
next prev parent reply other threads:[~2014-08-13 17:11 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-08-06 8:59 [U-Boot] [PATCH 0/4] arm: vf610: add NAND flash support Stefan Agner
2014-08-06 8:59 ` [U-Boot] [PATCH 1/4] arm: vf610: add NFC pin mux Stefan Agner
2014-08-30 15:14 ` [U-Boot] [U-Boot,1/4] " Tom Rini
2014-08-06 8:59 ` [U-Boot] [PATCH 2/4] arm: vf610: add NFC clock support Stefan Agner
2014-08-30 15:14 ` [U-Boot] [U-Boot,2/4] " Tom Rini
2014-08-06 8:59 ` [U-Boot] [PATCH 3/4] mtd: nand: add Freescale NFC driver Stefan Agner
2014-08-06 23:01 ` Bill Pringlemeir
2014-08-11 22:33 ` Scott Wood
2014-08-12 21:13 ` Stefan Agner
2014-08-12 22:17 ` Scott Wood
2014-08-12 22:58 ` Bill Pringlemeir
2014-08-13 8:13 ` Stefan Agner
2014-08-13 11:20 ` Stefan Agner
2014-08-13 15:14 ` Bill Pringlemeir
2014-08-13 16:27 ` Stefan Agner
2014-08-13 17:11 ` Bill Pringlemeir [this message]
2014-08-13 20:32 ` Scott Wood
2014-08-13 20:41 ` Scott Wood
2014-08-13 21:44 ` Bill Pringlemeir
2014-08-13 22:54 ` Scott Wood
2014-08-14 14:26 ` Bill Pringlemeir
2014-08-06 8:59 ` [U-Boot] [PATCH 4/4] arm: vf610: add NAND support for vf610twr Stefan Agner
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=87oavol3g7.fsf@nbsps.com \
--to=bpringlemeir@nbsps.com \
--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.