Welcome, Guest. Please
login
or
register
.
Forums
Forums
Board
Topic
Home
Today's Posts
Gallery
Login
Register
Amiga.org
»
Amiga computer related discussion
»
Amiga Software Issues and Discussion
»
Why is my Hello C++ program 6 MB big?
« previous
next »
Print
Pages: [
1
]
Go Down
Author
Topic: Why is my Hello C++ program 6 MB big? (Read 1058 times)
Description:
0 Members and 1 Guest are viewing this topic.
kaarlo52
Newbie
Join Date: Dec 2023
Posts: 2
Country:
Why is my Hello C++ program 6 MB big?
«
on:
January 03, 2024, 08:46:14 AM »
Why is my Hello C++ program 6 MB big?
I installed Windows cross-compiler adtools on Cygwin.
And compiled simple c++ program:
"ppc-amigaos-g++ -athread=single helllo.cpp -o hello"
At least it works.
Here are the instructions:
https://os4coding.net/blog/kas1e/how-build-amigaos4-cross-compiler-binutils-2232-gcc-830-cygwin
I had to use Hyperion SDK 53.30 in native-build makefile SDK_VERSION to build it.
«
Last Edit: January 04, 2024, 10:43:18 AM by kaarlo52
»
Logged
Boing-ball
Sr. Member
Join Date: Nov 2023
Posts: 452
Country:
Thanked: 18 times
Gender:
Re: Why is my Hello C++ program 6 MB big?
«
Reply #1 on:
January 04, 2024, 02:40:32 AM »
Could it be that to make this a stand alone executable, extra stuff has to be compiled into the program? So that any system can run it? Not done any C coding. But seem to recall back in my PASCAL coding days that this was a thing when you compiled.
Logged
kolla
Hero Member
Join Date: Oct 2002
Posts: 4457
Country:
Thanked: 21 times
Re: Why is my Hello C++ program 6 MB big?
«
Reply #2 on:
January 04, 2024, 04:14:40 AM »
I've never buildt for OS4 (I think), so I don't know if this is relevant, but... have you tried "strip hello" to remove the symbol table etc?
Logged
B5D6A1D019D5D45BCC56F4782AC220D8B3E2A6CC
---
A3000/060CSPPC+CVPPC/128MB + 256MB BigRAM/Deneb USB
A4000/CS060/Mediator4000Di/Voodoo5/128MB
A1200/Blz1260/IndyAGA/192MB
A1200/Blz1260/64MB
A1200/Blz1230III/32MB
A1200/ACA1221
A600/V600v2/Subway USB
A600/Apollo630/32MB
A600/A6095
CD32/SX32/32MB/Plipbox
CD32/TF328
A500/V500v2
A500/MTec520
CDTV
MiSTer, MiST, FleaFPGAs and original Minimig
Peg1, SAM440 and Mac minis with MorphOS
kaarlo52
Newbie
Join Date: Dec 2023
Posts: 2
Country:
Re: Why is my Hello C++ program 6 MB big?
«
Reply #3 on:
January 04, 2024, 10:30:18 AM »
ppc-amigaos-strip.exe worked. Now the executable size is 690 KB.
Thanks.
Logged
Print
Pages: [
1
]
Go Up
« previous
next »
Amiga.org
»
Amiga computer related discussion
»
Amiga Software Issues and Discussion
»
Why is my Hello C++ program 6 MB big?
There was an error while thanking
Thanking...