Welcome, Guest. Please login or register.

Author Topic: Programming Software  (Read 4564 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline Piru

  • \' union select name,pwd--
  • Hero Member
  • *****
  • Join Date: Aug 2002
  • Posts: 6946
    • Show all replies
    • http://www.iki.fi/sintonen/
Re: Programming Software
« on: February 12, 2008, 09:24:24 AM »
@Braddo
Quote
A lot of things achieved in more advanced games would simply be impossible with a high level language such as Basic or C and such a limited CPU and RAM.

C is not high level language.

Quote
assembly allows you to do many, many things that can't be accomplished otherwise.

Such as?

Quote
Not to mention demos. Can you honestly imagine someone programming a decent demo in Basic?

Modern demos are coded in C or C++, with some hand optimized assembly routines linked in for speed.

I can't imagine anyone doing assembly only coding these days.

I would recommend programming in C any day. With asm you will be learning the wrong things 99.9% of the time.


PS. There still are dealers selling DevPac, so I'd remove the warez link.
 

Offline Piru

  • \' union select name,pwd--
  • Hero Member
  • *****
  • Join Date: Aug 2002
  • Posts: 6946
    • Show all replies
    • http://www.iki.fi/sintonen/
Re: Programming Software
« Reply #1 on: February 12, 2008, 01:06:05 PM »
@Braddo
Quote
Yes it is.

C is very low level language:
"C is an imperative (procedural) systems implementation language. Its design goals were for it to be compiled using a relatively straightforward compiler, provide low-level access to memory, provide language constructs that map efficiently to machine instructions, and require minimal run-time support. C was therefore useful for many applications that had formerly been coded in assembly language."

Quote
The possibilities of what you can do when you are able to hit the hardware directly are almost endless

You can hit hardware with C just fine.

Quote
I suggest you take a look at the hardware registers. Not to mention the speed benefits.

You can access the hardware registers from C just fine. In most cases when poking hardware C is equally fast as assembly (the hardware is actually bogging the access down).

Quote
However saying you will be learning wrong things 99.9% of time?

When coding in assembly you will be writing the initialization, cleanup and other support code most of the time, rather than actually concentrating on the actual important bits. This is very tedious work, and often this support/init/cleanup code is executed only once. There is no need to write it in assembly. It generally is a good idea to write your code in C or C++, and later on identify locations that need speed up. If even after algorithm level optimization the code is too slow, only then you should consider rewriting that bit in assembly. Even then you only want to optimize the critical bits (innerloops and such).

Quote
You obviously have no idea what you are talking about.

I think I am quite qualified to talk about both assembly and C coding.

Some stuff:
http://www.iki.fi/sintonen/sw/
http://www.iki.fi/sintonen/src/

Quote
As for removing the link, I won't be doing that.

Fair enough. The moderating policy has become more lax recently, and that was just a suggestion. I just thought it would be nice to support he remaining amiga dealers.
 

Offline Piru

  • \' union select name,pwd--
  • Hero Member
  • *****
  • Join Date: Aug 2002
  • Posts: 6946
    • Show all replies
    • http://www.iki.fi/sintonen/
Re: Programming Software
« Reply #2 on: February 12, 2008, 01:44:00 PM »
@ThePieman

programming language: C
compiler: SAS/C (if you can find & afford it), if you can't: gcc (or if you must have IDE, StormC4 or CubicIDE [thanks Hans_!])

If you need to use assembly for some bits: PhxAss, PhxLnk

Must have programming references and stuff: Amiga Developer CD v2.1 (this is easily available from Amigakit for example).

For advanced amiga hacking: The Amiga Guru Book