Date: Tue, 13 Aug 2019 10:08:37 -0700
On Tuesday, 13 August 2019 09:55:07 PDT Corentin wrote:
> (if anyone is thinking about that, I don't recommend it. You're going to run
> into size limits: ICC at 512kB and MSVC at 256kB. Use something like xxd -i
> to generate a brace-delimited array instead)
>
> Afaik that works if you use \x to escape every byte otherwise some
> implementation will mess with your data. Nothing is guaranteed to be
> passthrough otherwise
That would be ideal, but the problem I had was the unavailability of proper
tools to convert the input into a form that the C++ compiler could consume. I
was trying to do with a simple concatenation of a header, data, and footer.
The end result is a shell script, a Perl script and a powershell script:
https://codereview.qt-project.org/c/qt/qtbase/+/263548
> (if anyone is thinking about that, I don't recommend it. You're going to run
> into size limits: ICC at 512kB and MSVC at 256kB. Use something like xxd -i
> to generate a brace-delimited array instead)
>
> Afaik that works if you use \x to escape every byte otherwise some
> implementation will mess with your data. Nothing is guaranteed to be
> passthrough otherwise
That would be ideal, but the problem I had was the unavailability of proper
tools to convert the input into a form that the C++ compiler could consume. I
was trying to do with a simple concatenation of a header, data, and footer.
The end result is a shell script, a Perl script and a powershell script:
https://codereview.qt-project.org/c/qt/qtbase/+/263548
-- Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org Software Architect - Intel System Software Products
Received on 2019-08-13 19:08:44