AminetAminet
Search:
85320 packages online
About
Recent
Browse
Search
Upload
Setup
Services

dev/gcc/Private_String_CPP.zip

Mirror:Random
Showing: m68k-amigaos iconppc-amigaos iconppc-morphos iconi386-aros iconi386-amithlon iconppc-warpup iconppc-powerup icongeneric iconother icon
No screenshot available
Short:Private String in CPP code,g++ compiled
Author: wisecracker.bazza at gmail.com (Barry_Walker, G0LCU)
Uploader:<wisecracker bazza gmail com> Lincs Amiga Group, LAG
Type:dev/gcc
Version:1.00.00
Architecture:m68k-amigaos
Date:2026-05-24
Distribution:Aminet
Download:dev/gcc/Private_String_CPP.zip - View contents
Readme:dev/gcc/Private_String_CPP.readme
Downloads:1

============================================================================

Architectures: Classic AMIGA emulation FS-UAE on OSX 10.15.x and Mint 22.3.
---------------------------------------------------------------------------

  MINIMUM Requirements Are:-
  --------------------------

  Amiga environment:-

       FS-UAE on Intel APPLE OSX 10.15.x and GNU/Linux Mint Cinnamon 22.3.
       Standard default AMIGA OS_3.0.x install or better, set up with 4MB
       of FastRAM.
       Full ADE install is needed.
       http://aminet.net/package/dev/gcc/ADE
       Also...
       https://aminet.net/package/util/libs/ixemul-48.0

----------------------------------------------------------------------------

  History:-
  ---------

  25-05-2026.
  -----------
  Version 1.00.00. Probably the one and only upload for this archive.

----------------------------------------------------------------------------

  General, consider this the manual:-
  -----------------------------------

  (Apologies for any typos, etc...)

  Inserting A Private String Inside CPP Code, compiled Using g++ 2.95.3.
  ----------------------------------------------------------------------

  This assumes that you have both 'ADE' and 'ixemul-48.0' fully installed
  and configured.

  A few years ago on this site this thread started, which I solved:
  https://www.unix.com/programming/279864-embed-text-c-code.html
  And I finalised it here:
  https://www.unix.com/programming/281218-private-string-embedded-inside-c-code.html

  As a conclusion to my aging gcc C source......
         https://aminet.net/package/dev/gcc/embed_private_strings.c
  ......I thought I would add a pure ANSI CPP version.

  This has been only tested on FS-UAE with AMIGA OS 3.0x installed along with
  4MB of FastRAM as part of the emulation on both Intel GNU/Linux Mint 22.3,
  and, Intel Apple OSX 10.15.x.
  It has not been tested on MY real hardware, but there is no reason why it
  should not work.

  !!!IMPORTANT!!
  --------------
  Before even trying there may be an alteration needed to the assembl[er][y]
  instruction inside the code for the architecture you are using.
  READ the 'Architectures_Without_JMP.txt' if you are NOT using, most Intel
  or Motorola 68K systems.
  For example, the M? series silicon for current APPLE gear will need to be
  changed from 'jmp' to 'b' before compiling, AFAIK the 'b' IS lower case.
  (I don't have any current M-Series APPLE gear so this becomes untested.) 

  On the AMIGA A1200(HD) emulation:-
  YOUR private string has a maximum ASCII character line length of 249,
  allowing for both SINGLE QUOTES, and any trailing newline and NULL
  characters at the end, to give a total of 255 characters.

  On Intel, GNU/Linux Mint Cinnamon 22.3:-
  YOUR private string has a maximum POSIX ASCII character line length of
  2041, allowing for both SINGLE QUOTES, and any trailing newline and NULL
  characters at the end, to give a total of 2048 characters.

  On the two current architectures catered for:-
  The string, INSIDE the SINGLE QUOTES, MUST be an ODD number of ASCII
  characters long. If it is EVEN then just add a space character at the end. 
  READ the code for much more information.

  Start ADE as per the _manual_ or instructions and go to the drawer where
  the source code is saved.
  Mine is in:-
  /SYS/ADE/home/C/Private_String.cpp
  Compile using:-
          g++ -Wall -ansi -Os -o Private_String Private_String.cpp
  This will take a few seconds, (25[ish]), to compile...

  When you view the hexdumps you will notice that the data sections are not
  same in the AMIGA g++ 2.95.3 executable and much later versions of g++
  executables for other platforms. It does not alter the position of the
  hidden string however. If the Private_String function is the very first
  then the hidden string will be near the top of the working code body.

----------------------------------------------------------------------------

                                IMPORTANT:-
                                -----------

    The Legal Stuff:-
    -----------------

    The authors are not responsible for any damage to, or loss of, or
    failure of equipment or data caused in any way by the use of this code.

    There is NO warranty with the use of this software release and
    YOU USE IT AT YOUR OWN RISK.

----------------------------------------------------------------------------

    Testing Evaluation:-
    --------------------

    FS-UAE emulation of Classic AMIGA test conditions were/are running
    standard OS 3.0.x and using standard ~topaz 8~ fonts throughout. The
    minimum memory requirement of 4MB extra FastRAM IS needed however.

    I have no idea what strange configuration setups will create so refer
    to the ~The Legal Stuff~ above.

    The whole archive was centred around the AMIGA! APPLE OSX 10.15.x and MY
    Linux flavour were included to make the code as universal as possible
    without any modification at all.

----------------------------------------------------------------------------

    Barry Walker, G0LCU.
    wisecracker.bazza@gmail.com

----------------------------------------------------------------------------

    A place to visit, literally and URL wise:-
                    https://lincsamiga.org.uk/wordpress/

----------------------------------------------------------------------------


    A very useful HardWare related site, (C) Anthony Hoffman, for
    modifications, schematics, repairs and the like is:-

                          http://amiga.serveftp.net/

============================================================================



Contents of dev/gcc/Private_String_CPP.zip
Archive:  /home/aminet/aminet_root/doc/dev/gcc/Private_String_CPP.zip
 Length   Method    Size  Cmpr    Date    Time   CRC-32   Name
--------  ------  ------- ---- ---------- ----- --------  ----
       0  Stored        0   0% 2026-05-24 20:10 00000000  Private_String_CPP/
    1977  Defl:N      879  56% 2026-05-24 14:50 0b4a7cb3  Private_String_CPP/Architectures_Without_JMP.txt
    3891  Defl:N     1697  56% 2026-05-24 15:04 d1b48ed0  Private_String_CPP/Hexdumps.txt
    6571  Defl:N     2719  59% 2026-05-24 19:06 824de4d6  Private_String_CPP/Private_String.cpp
   78680  Defl:N    32738  58% 2026-05-24 13:40 43bc966c  Private_String_CPP/Private_String_AMIGA.EXE
   71792  Defl:N    65454   9% 2026-05-24 14:06 4015ee77  Private_String_CPP/Private_String_AMIGA.png
    5888  Defl:N     2325  61% 2026-05-24 20:09 5fb863c2  Private_String_CPP/Private_String_CPP.readme
   16480  Defl:N     2752  83% 2026-05-24 13:01 2b925f74  Private_String_CPP/Private_String_LINUX.EXE
  182895  Defl:N   177022   3% 2026-05-24 14:08 df6914d5  Private_String_CPP/Private_String_LINUX.png
--------          -------  ---                            -------
  368174           285586  22%                            9 files
Page generated in 0.02 seconds
Aminet © 1992-2024 Urban Müller and the Aminet team. Aminet contact address: <aminetaminet net>