I think you should to use code unit6_t text[128] = "Some text...";


On 9/25/06, Philipp Klaus Krause <[EMAIL PROTECTED]> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> I compiled a function where the first line of the function body is
> const uint8_t text[128] = "Some text...
> I supposed sdcc would put the string constant into ROM. I looked at the
> generated assembly code. Sdcc takes memory from the stack and generates
> code for the ssignment, 8 instructions per character from the string
> constant!
> If it's a global string constant it's put into ROM.
> If it's a local, but static string constant, it's put into RAM, but the
> code to initialize it needs only two instructions per byte.
>
> Philipp
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.5 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>
> iD8DBQFFF+SmbtUV+xsoLpoRAtFCAKCad8TrA8FGDeilzN7TY9h3xQ1uRACg4dLq
> v/9EiqtQOPoszgmBtTmIBaQ=
> =xl+K
> -----END PGP SIGNATURE-----
>
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys -- and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> Sdcc-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/sdcc-user
>


-- 
Diego Manenti Martins
+55 48 8421-1025

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Sdcc-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sdcc-user

Reply via email to