Poll: Should I include Qbasic Cameos?
You do not have permission to vote in this poll.
Yes
100.00%
10 100.00%
Total 10 vote(s) 100%
* You voted for this item. [Show Results]

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Cobra
Okay, okay. Im not trying to say that asm is completely useless to learn, just that I would (personally) recommend that people learn high level languages instead. For someone getting into general programming with an interest in making hobbyist games or simple applications, asm is way down the list of programming languages to learn. Moving to the future, things like Java and .NET are pushing programmers even futher away from needing asm. We are probably coming from different angles also, Im mostly into low-level system coding, and you guys are arguing from a game standpoint.

Quote:And they (C compilers) can't use such things such as mmx (i'm well aware of vectorC and intel c++), atleast in a good way
My version of gcc has arch flags for at least the following: pentium, pentium-pro, pentium-mmx, pentium2, pentium3, k6, k6-2, k6-3, athlon, athlon-tbird, athlon-xp and can compile code that utilises the extended instruction sets provided by each of those architectures. This is difficult for a pure assembley coder because each instruction set is different and multiple asm files would be needed to ensure portability (with a C version you just need a architecture detection script).

Quote:Assembly in Linux for i86s is just the same as it is in DOS/Windows. They only differ in the syntax.
They aren't quite the same when you get into more elaborate asm coding because you have to adhere to the operating systems conventions, such as function call setup, available interupts, alignment rules, etc.

Quote:In fact ASM is not a language at all but a syntactic way to issue instructions on a machine level.
Not quite, most symbolic asm languages contain pseudo-ops and shortcuts. The assembler directives are all pseudo ops, and even some instructions can produce multiple instructions once at machine level. The only example I can think of off hand is one for the sparc where the set operation actually produces a sethi and an or instruction at machine level because a 32-bit word cant fit into a single 32-bit instruction.

Quote:But ignoring things like that, knowing asm makes you a better high level coder as well. Becuase you know how the computer works and you're able to analyze the code the compiler generates.
This is true, but again relates more to someone who is coding at system level, when programming in a highlevel language it is generally a bad thing (IMHO) to be trying to program to the architecture. As I said, most of the asm work I do I work at a high-level language first and then compile to assembler to get a head start. The strcpy code I posted early is an example of knowing what produces better object code in a high-level language.

As for speed of algorithms etc, I disagree completely on using asm. If an algorithm is too slow in a high-level language then it is time to start looking at your data structures and algorithm code to see if you can improve it mathmatically, asm should be a last resort for speed here. (Especially as most modern compilers support optomizations such as loop unrolling and inline functions).

Quote:Asm is still used allot in the gamedev industry. Becuase there you have lots of innerloops which are time critical. In those situations nothing can replace asm.

I havent seen enough comercial game code to be able to comment on this with any amount of certaincy, however I mentioned earlier that the Quake2 source doesnt contain /any/ asm code in the OpenGL version. Not enough game companies are releasing their source code to be able to effectively comment on this. Hobbyist games are not always a good source, because as you said people can code poorly in any language and produce slow code, which may lead them to believe that they need asm code when a little extra work at a high level would do the trick.

So if you are going to learn assembley, then learn when you do and dont need it, how it relates to other languages and what alternatives exist. Dont take what I said to mean that nobody should ever learn asm, I meant that with the vast amount of libraries and advancments in hardware and software speed, asm is becoming less mandatory for general programming. It is still, and always will be highly necessary for niche programming.
esus saves.... Passes to Moses, shoots, he scores!
Reply


Messages In This Thread
Cobra - by Rokkuman - 12-14-2002, 06:37 AM
Cobra - by LooseCaboose - 12-14-2002, 08:49 AM
Cobra - by Hexadecimal Disaster - 12-14-2002, 08:54 AM
Cobra - by wizardlife - 12-14-2002, 09:09 AM
Come on... - by Rokkuman - 12-14-2002, 11:49 AM
Best fighting game... - by Ryan - 12-14-2002, 12:33 PM
Cobra - by Antoni Gual - 12-14-2002, 08:26 PM
His page - by Ryan - 12-15-2002, 01:00 AM
Cobra - by _Bill_ - 12-15-2002, 01:49 AM
Cobra - by Hexadecimal Disaster - 12-15-2002, 02:18 AM
Cobra - by na_th_an - 12-15-2002, 03:39 AM
You say you want cameos. - by Rokkuman - 12-15-2002, 04:20 AM
Cobra - by na_th_an - 12-15-2002, 08:38 AM
Cobra - by LooseCaboose - 12-15-2002, 09:14 AM
Sorry - by Rokkuman - 12-15-2002, 09:26 AM
Opps, my bad. - by Rokkuman - 12-15-2002, 11:14 AM
Canceled - by Rokkuman - 12-15-2002, 02:51 PM
Cobra - by na_th_an - 12-15-2002, 07:31 PM
Cobra - by Hexadecimal Disaster - 12-16-2002, 12:18 AM
WAIT IT'S NOT CANCELLED - by Rokkuman - 12-16-2002, 12:43 AM
Cobra screens. - by Rokkuman - 12-16-2002, 12:52 AM
Cobra - by Hexadecimal Disaster - 12-16-2002, 01:16 AM
Re: Cobra screens. - by wildcard - 12-16-2002, 04:25 AM
Cobra - by Piptol - 12-16-2002, 04:30 AM
Cobra - by Hexadecimal Disaster - 12-16-2002, 05:24 AM
Cobra - by toonski84 - 12-16-2002, 06:17 AM
Cobra - by toonski84 - 12-16-2002, 06:18 AM
YEs I have - by Rokkuman - 12-16-2002, 06:28 AM
Cobra - by na_th_an - 12-16-2002, 09:33 AM
Screenshots - by Rokkuman - 12-16-2002, 09:48 AM
Cobra Screeshots - by Rokkuman - 12-16-2002, 08:54 PM
Cobra - by Piptol - 12-17-2002, 01:38 AM
Cobra - by Hexadecimal Disaster - 12-17-2002, 02:38 AM
Cobra - by wildcard - 12-17-2002, 03:56 AM
Cobra - by Piptol - 12-17-2002, 05:07 AM
Cobra - by Rokkuman - 12-17-2002, 05:24 AM
Cobra - by na_th_an - 12-17-2002, 05:25 AM
You like those shots. - by Rokkuman - 12-17-2002, 07:00 AM
Cobra - by toonski84 - 12-17-2002, 04:45 PM
Cobra - by relsoft - 12-18-2002, 11:32 AM
Cobra - by Piptol - 12-18-2002, 11:59 PM
Cobra - by toonski84 - 12-19-2002, 03:50 AM
COBRA - by Rokkuman - 12-19-2002, 06:54 AM
Cobra - by LooseCaboose - 12-19-2002, 08:02 AM
Cobra - by . - 12-19-2002, 10:31 AM
NEW STAGE - by Rokkuman - 12-19-2002, 10:43 AM
Cobra - by toonski84 - 12-19-2002, 04:53 PM
Cobra - by LooseCaboose - 12-20-2002, 03:48 AM
Where do you get those sprites? - by Rokkuman - 12-20-2002, 05:34 AM
Cobra - by toonski84 - 12-20-2002, 06:42 AM
Cobra - by LooseCaboose - 12-20-2002, 07:17 AM
Faster - by Rokkuman - 12-20-2002, 07:39 AM
Cobra - by LooseCaboose - 12-20-2002, 07:52 AM
Thanks - by Rokkuman - 12-20-2002, 07:55 AM
Cobra - by toonski84 - 12-20-2002, 08:17 AM
Just the Pause. - by Rokkuman - 12-20-2002, 10:20 AM
TADA! - by Rokkuman - 12-20-2002, 10:27 AM
Cobra - by relsoft - 12-20-2002, 10:31 AM
COBRA DEMO - by Rokkuman - 12-20-2002, 11:37 AM
Cobra - by relsoft - 12-20-2002, 12:16 PM
Thanks - by Rokkuman - 12-20-2002, 12:20 PM
Cobra - by relsoft - 12-20-2002, 12:25 PM
Thanks - by Rokkuman - 12-20-2002, 12:54 PM
Cobra - by relsoft - 12-20-2002, 01:06 PM
Cobra - by na_th_an - 12-20-2002, 05:03 PM
Cobra - by toonski84 - 12-20-2002, 05:26 PM
Yes there will be IA :) - by Rokkuman - 12-20-2002, 09:25 PM
Cobra - by LooseCaboose - 12-21-2002, 05:58 AM
Apinyinz - by Rokkuman - 12-21-2002, 05:59 AM
Cobra - by Hexadecimal Disaster - 12-21-2002, 11:18 PM
Cobra - by toonski84 - 12-22-2002, 12:16 AM
Yeah - by Rokkuman - 12-22-2002, 01:10 AM
LooseCaboose. - by Rokkuman - 12-22-2002, 03:57 AM
Cobra - by toonski84 - 12-22-2002, 04:44 AM
Thanks - by Rokkuman - 12-22-2002, 04:58 AM
Cobra - by na_th_an - 12-22-2002, 05:08 AM
Cobra - by toonski84 - 12-22-2002, 10:14 AM
Feedback - by Rokkuman - 12-22-2002, 10:39 AM
Cobra - by LooseCaboose - 12-22-2002, 03:14 PM
Cobra - by na_th_an - 12-22-2002, 05:30 PM
Cobra - by toonski84 - 12-22-2002, 06:21 PM
I need your apinyin - by Rokkuman - 12-23-2002, 03:05 AM
Cobra - by toonski84 - 12-23-2002, 03:08 AM
Cobra - by Rokkuman - 12-23-2002, 03:22 AM
Cobra - by toonski84 - 12-23-2002, 03:39 AM
Cobra - by Rokkuman - 12-23-2002, 03:47 AM
Cobra - by toonski84 - 12-23-2002, 03:55 AM
Cobra - by Hexadecimal Disaster - 12-23-2002, 06:13 AM
Kyle - by Rokkuman - 12-23-2002, 07:39 AM
Cobra - by Rokkuman - 12-23-2002, 10:36 AM
Cobra - by Rokkuman - 12-23-2002, 11:58 AM
Cobra - by relsoft - 12-23-2002, 12:47 PM
Cobra - by Rokkuman - 12-23-2002, 01:49 PM
Cobra - by Rokkuman - 12-26-2002, 09:03 AM
Cobra - by na_th_an - 12-26-2002, 05:49 PM
Cobra - by Piptol - 12-26-2002, 06:15 PM
Cobra - by na_th_an - 12-26-2002, 10:21 PM
Cobra - by toonski84 - 12-26-2002, 11:30 PM
Cobra - by Rokkuman - 12-27-2002, 03:23 AM
Cobra - by na_th_an - 12-27-2002, 03:58 AM
Cobra - by toonski84 - 12-27-2002, 04:12 AM
Cobra - by toonski84 - 12-27-2002, 04:14 AM
Cobra - by na_th_an - 12-27-2002, 06:40 AM
Cobra - by toonski84 - 12-27-2002, 06:51 AM
Cobra - by na_th_an - 12-27-2002, 06:59 AM
Cobra - by toonski84 - 12-27-2002, 07:35 AM
Cobra - by na_th_an - 12-27-2002, 07:54 AM
Cobra - by toonski84 - 12-27-2002, 06:58 PM
Cobra - by na_th_an - 12-27-2002, 11:18 PM
Cobra - by toonski84 - 12-28-2002, 02:15 AM
Cobra - by na_th_an - 12-28-2002, 02:45 AM
Cobra - by toonski84 - 12-28-2002, 03:48 AM
Cobra - by na_th_an - 12-28-2002, 04:30 AM
Cobra - by toonski84 - 12-28-2002, 05:10 AM
Cobra - by Rokkuman - 12-28-2002, 05:14 AM
Cobra - by toonski84 - 12-28-2002, 05:16 AM
Cobra - by Rokkuman - 12-28-2002, 05:39 AM
Cobra - by na_th_an - 12-28-2002, 08:00 AM
Cobra - by toonski84 - 12-28-2002, 09:21 AM
Cobra - by na_th_an - 12-28-2002, 05:43 PM
Cobra - by Rokkuman - 01-07-2003, 07:34 AM
Cobra - by toonski84 - 01-07-2003, 07:38 AM
Cobra - by Rokkuman - 01-07-2003, 07:50 AM
Cobra - by toonski84 - 01-07-2003, 07:53 AM
Cobra - by Dav - 01-07-2003, 08:10 AM
Cobra - by Rokkuman - 01-08-2003, 07:39 AM
Cobra - by toonski84 - 01-08-2003, 07:48 AM
Cobra - by Rokkuman - 01-08-2003, 07:51 AM
Cobra - by Rokkuman - 01-08-2003, 08:06 AM
Cobra - by toonski84 - 01-08-2003, 08:46 AM
Cobra - by Rokkuman - 01-08-2003, 10:33 AM
Cobra - by citpes - 01-08-2003, 11:13 PM
Cobra - by toonski84 - 01-09-2003, 02:43 AM
Cobra - by Rokkuman - 01-10-2003, 08:01 AM
Cobra - by Rokkuman - 01-19-2003, 01:48 PM
Cobra - by na_th_an - 01-19-2003, 06:58 PM
Cobra - by ak00ma - 01-27-2003, 11:23 PM
Cobra - by toonski84 - 01-28-2003, 04:41 AM
Cobra - by Rokkuman - 01-28-2003, 08:11 AM
Cobra - by Rokkuman - 02-24-2003, 11:08 AM
Cobra - by Rokkuman - 04-20-2003, 11:22 AM
Cobra - by na_th_an - 04-20-2003, 03:31 PM
Cobra - by Piptol - 04-20-2003, 07:15 PM
Cobra - by na_th_an - 04-20-2003, 08:35 PM
Cobra - by toonski84 - 04-20-2003, 10:27 PM
Cobra - by Rokkuman - 04-26-2003, 10:59 AM
Cobra - by Ninkazu - 04-26-2003, 08:25 PM
Cobra - by Blitz - 04-26-2003, 11:26 PM
Cobra - by Ninkazu - 04-26-2003, 11:48 PM
Cobra - by Agamemnus - 04-26-2003, 11:54 PM
Cobra - by Rokkuman - 04-27-2003, 12:03 AM
Cobra - by Blitz - 04-27-2003, 01:14 AM
Cobra - by Rokkuman - 04-27-2003, 01:21 AM
Cobra - by Blitz - 04-27-2003, 01:40 AM
Cobra - by Rokkuman - 04-27-2003, 01:50 AM
Cobra - by momoguru - 04-27-2003, 04:58 AM
Cobra - by wizardlife - 04-27-2003, 06:58 AM
Cobra - by LooseCaboose - 04-28-2003, 08:52 AM
Cobra - by relsoft - 04-28-2003, 03:09 PM
Cobra - by toonski84 - 04-28-2003, 04:22 PM
Cobra - by relsoft - 04-29-2003, 08:39 AM
Cobra - by LooseCaboose - 04-29-2003, 09:46 AM
Cobra - by relsoft - 04-29-2003, 01:58 PM
Cobra - by toonski84 - 04-29-2003, 04:28 PM
Cobra - by LooseCaboose - 04-29-2003, 05:39 PM
Cobra - by Rokkuman - 04-30-2003, 07:16 AM
Cobra - by Hexadecimal Disaster - 04-30-2003, 10:23 AM
Cobra - by Rokkuman - 04-30-2003, 11:02 AM
Cobra - by Hexadecimal Disaster - 04-30-2003, 11:36 AM
Cobra - by relsoft - 04-30-2003, 01:01 PM
Cobra - by na_th_an - 04-30-2003, 02:40 PM
Cobra - by ak00ma - 04-30-2003, 04:45 PM
Cobra - by Blitz - 04-30-2003, 09:38 PM
Cobra - by toonski84 - 05-01-2003, 02:23 AM
Cobra - by LooseCaboose - 05-01-2003, 04:30 AM
Cobra - by relsoft - 05-01-2003, 10:36 AM
Cobra - by Blitz - 05-01-2003, 01:51 PM
Cobra - by LooseCaboose - 05-02-2003, 03:44 AM
Cobra - by Rokkuman - 05-12-2003, 03:11 AM
Cobra - by Hexadecimal Disaster - 05-12-2003, 12:22 PM
Re: Cobra - by Rokkuman - 05-03-2009, 09:20 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)