<div dir="auto"><div><br><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Aug 13, 2019, 7:08 PM Thiago Macieira &lt;<a href="mailto:thiago@macieira.org">thiago@macieira.org</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Tuesday, 13 August 2019 09:55:07 PDT Corentin wrote:<br>
&gt; (if anyone is thinking about that, I don&#39;t recommend it. You&#39;re going to run<br>
&gt; into size limits: ICC at 512kB and MSVC at 256kB. Use something like xxd -i<br>
&gt; to generate a brace-delimited array instead)<br>
&gt; <br>
&gt; Afaik that works if you use \x to escape every byte otherwise some<br>
&gt; implementation will mess with your data. Nothing is guaranteed to be<br>
&gt; passthrough otherwise<br>
<br>
That would be ideal, but the problem I had was the unavailability of proper <br>
tools to convert the input into a form that the C++ compiler could consume. I <br>
was trying to do with a simple concatenation of a header, data, and footer.<br>
<br>
The end result is a shell script, a Perl script and a powershell script:<br>
        <a href="https://codereview.qt-project.org/c/qt/qtbase/+/263548" rel="noreferrer noreferrer" target="_blank">https://codereview.qt-project.org/c/qt/qtbase/+/263548</a></blockquote></div></div><div dir="auto"><br></div><div dir="auto">Interesting ! std::embed could be useful there (we are going a bit off script). Some kind of raw bytes literals or an implementation that would optimize parsing arrays of literals such that it is as efficient at compile time as strings would also be nice. </div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
-- <br>
Thiago Macieira - thiago (AT) <a href="http://macieira.info" rel="noreferrer noreferrer" target="_blank">macieira.info</a> - thiago (AT) <a href="http://kde.org" rel="noreferrer noreferrer" target="_blank">kde.org</a><br>
   Software Architect - Intel System Software Products<br>
<br>
<br>
<br>
</blockquote></div></div></div>