Skip to content

ROT-13 in Red/System : executable with only 872 bytes#19

Merged
dockimbel merged 1 commit into
red:masterfrom
guaracy:master
May 15, 2024
Merged

ROT-13 in Red/System : executable with only 872 bytes#19
dockimbel merged 1 commit into
red:masterfrom
guaracy:master

Conversation

@guaracy
Copy link
Copy Markdown
Contributor

@guaracy guaracy commented May 15, 2024

Platforma: Linux
Compile: "red-toolchain -c --no-runtime rot13.reds"

Results in a binary with only 872 byte on Linux

Usage: {
    echo "some text" | rot13
    rot13 < file.txt
    rot13 < filein.txt > fileout.txt
    rot13 [[text Enter] ...] Ctrl+C
}

@dockimbel
Copy link
Copy Markdown
Member

dockimbel commented May 15, 2024

Nice work!

The -c option is meaningful only for Red scripts, for R/S ones, the compilation is implied when the toolchain sees the Red/System file header.

@dockimbel dockimbel merged commit 2e0cb8e into red:master May 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants