Welcome, Guest. Please login or register.

Author Topic: Learning to code on the Amiga  (Read 13172 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline Karlos

  • Sockologist
  • Global Moderator
  • Hero Member
  • *****
  • Join Date: Nov 2002
  • Posts: 16879
  • Country: gb
  • Thanked: 5 times
    • Show all replies
Re: Learning to code on the Amiga
« on: November 17, 2003, 04:19:05 AM »
Whilst I feel that writing entire apps in asm is purely for the insane / demo coder, you can't know too much. It's worthwhile knowing asm, even if only for debugging compiler output.

Primarily I program in C++, then C. However, once any piece of software becomes specialised for a system, the dependency issue largely is out of your hands anyway.

Then you find that sometimes, no matter how efficient your algorithms in C/C++ code, some intensive function call is still too slow, especially if you are developing for a 680x0 system say.

Knowing asm is good for these situations especially. You keep the C++ code and conditionally compile away the C++ function definition when compiling for the system you wrote the asm version for.

Your project is still portable, just fine tuned on the particular implementations.
int p; // A
 

Offline Karlos

  • Sockologist
  • Global Moderator
  • Hero Member
  • *****
  • Join Date: Nov 2002
  • Posts: 16879
  • Country: gb
  • Thanked: 5 times
    • Show all replies
Re: Learning to code on the Amiga
« Reply #1 on: July 12, 2004, 05:03:47 PM »
@Red

C++ is OK, but I agree C+++ is a {bleep} :-D
int p; // A