<div class="gmail_quote">On Tue, Mar 6, 2012 at 8:32 AM, Jakob Stoklund Olesen <span dir="ltr"><<a href="mailto:stoklund@2pi.dk">stoklund@2pi.dk</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im"><br>
On Mar 6, 2012, at 8:23 AM, Craig Topper wrote:<br>
<br>
> It might not work with 64k registers. I didn't make the change to use one long string literal. I just exploited the C++ restriction that a string literal cant contain more 64K characters. I'll add asserts since that restriction might only be a warning.<br>

<br>
</div>That's just a minimum limit, clang and gcc have much larger limits. I expect so does most other modern compilers.<br>
<br>
The C++ standard also says that unsigned is at least 16 bits. That doesn't mean you can replace it with uint16_t everywhere.<br>
<span class="HOEnZb"><font color="#888888"><br>
/jakob<br>
<br>
</font></span></blockquote></div><br>I know its the minimum limit, but clang in default build configuration and Werror will fail if the string literal is larger than 64K doesn't that sort make the code base after obey the minimum limit?<br>
<br clear="all"><br>-- <br>~Craig<br>