__END__ (embedded data)
Mixing code and data in Ruby with DATA and __END__
Work perfectly with binary content as well.
(see also ruby-tricks)
C++
A less portable way to do this (even in C) with GNU ld is
then link in that in, and you have
to actually address the data
see also
Written on May 14, 2018, Last update on November 13, 2023
ruby
tricks
c++