Welcome, Guest. Please login or register.

Author Topic: Why is my Hello C++ program 6 MB big?  (Read 1049 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline kaarlo52Topic starter

  • Newbie
  • *
  • Join Date: Dec 2023
  • Posts: 2
  • Country: fi
    • Show all replies
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 »
 

Offline kaarlo52Topic starter

  • Newbie
  • *
  • Join Date: Dec 2023
  • Posts: 2
  • Country: fi
    • Show all replies
Re: Why is my Hello C++ program 6 MB big?
« Reply #1 on: January 04, 2024, 10:30:18 AM »
ppc-amigaos-strip.exe worked. Now the executable size is 690 KB.

Thanks.