Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Aug 13th, 2005, 2:39 PM   #1
CodeJunkie
Programmer
 
Join Date: Aug 2005
Location: England
Posts: 37
Rep Power: 0 CodeJunkie is on a distinguished road
Completely oblivous

Hya have a good knowledge of programming....
And i wish to learn assembly (No prior knowledge) wat compilers/editors/resources would any1 suggest?
CodeJunkie is offline   Reply With Quote
Old Aug 13th, 2005, 2:49 PM   #2
iignotus
Professional Programmer
 
iignotus's Avatar
 
Join Date: Apr 2005
Location: Nowhere Special
Posts: 466
Rep Power: 4 iignotus is on a distinguished road
Send a message via AIM to iignotus
It depends on what system you are compiling for. If for windows or linux, I would recommend nasm or fasm (in that order). There are also good tutorials for ASM on this board, or search google for Iczelion's pages.

Also, please try to refine your choice of grammar in posts. Thank you, and welcome to the board.
__________________
% rc4 hexkey < input > output
#define S ,t=s[i],s[i]=s[j],s[j]=t /* rc4 hexkey <file */
unsigned char k[256],s[256],i,j,t;main(c,v,e)char**v;{++v;while(++i)s[ 
i]=i;for(c=0;*(*v)++;k[c++]=e)sscanf((*v)++-1,"%2x",&e);while(j+=s[i]
+k[i%c]S,++i);for(j=0;c=~getchar();putchar(~c^s[t+=s[i]]))j+=s[++i]S;}
iignotus is offline   Reply With Quote
Old Aug 14th, 2005, 7:02 AM   #3
CodeJunkie
Programmer
 
Join Date: Aug 2005
Location: England
Posts: 37
Rep Power: 0 CodeJunkie is on a distinguished road
Thankyou for the advise.. Can ya please define wether or not C is assembly?
CodeJunkie is offline   Reply With Quote
Old Aug 14th, 2005, 10:08 AM   #4
uman
Expert Programmer
 
Join Date: Dec 2004
Posts: 794
Rep Power: 4 uman is on a distinguished road
C is not assembly. It isn't even close.
__________________
Few people deserve to be compared to (Rush) Limbaugh, most of them were convicted at the Nuremburg trials.
--WilliamSChips on Slashdot
uman is offline   Reply With Quote
Old Aug 14th, 2005, 1:24 PM   #5
CodeJunkie
Programmer
 
Join Date: Aug 2005
Location: England
Posts: 37
Rep Power: 0 CodeJunkie is on a distinguished road
OK far enough.... I am a little confused because some people have said to me that C is assembly or compiled C is used for assembly, or something?? how do you mean its "Not even close" ?
(Forgive me just trying to learn)
CodeJunkie is offline   Reply With Quote
Old Aug 14th, 2005, 1:58 PM   #6
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
C is a high-level language that deals in abstractions. Assembler is, at its simplest, a set of mnemonics that map one to one to the binary machine code instructions. Electrically gating the contents of two registers to two inputs of an ALU and reading and storing the result is NOT the same thing as writing "myVal += hisVal;". Used car salesmen will tell that a little ol' lady from Pasedena only drove it on Sundays, to church, too. Self-appointed wannabe gurus will tell you anything they can get you to uncritically believe, if you'll only promise to be their acolyte and not ask questions.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code.
Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers
DaWei is offline   Reply With Quote
Old Aug 14th, 2005, 2:33 PM   #7
iignotus
Professional Programmer
 
iignotus's Avatar
 
Join Date: Apr 2005
Location: Nowhere Special
Posts: 466
Rep Power: 4 iignotus is on a distinguished road
Send a message via AIM to iignotus
The confusion you might be getting, CodeJunkie, is that Assembly can be included in most C programs' source and compiled directly (by an assembly compiler). Also, there is an argument for the notion that a good C compilers (most of them are) compile C code into assembly better than most Assembly coders can do by hand, which has proven to be true on a number of occasions, especially for large programs.
__________________
% rc4 hexkey < input > output
#define S ,t=s[i],s[i]=s[j],s[j]=t /* rc4 hexkey <file */
unsigned char k[256],s[256],i,j,t;main(c,v,e)char**v;{++v;while(++i)s[ 
i]=i;for(c=0;*(*v)++;k[c++]=e)sscanf((*v)++-1,"%2x",&e);while(j+=s[i]
+k[i%c]S,++i);for(j=0;c=~getchar();putchar(~c^s[t+=s[i]]))j+=s[++i]S;}
iignotus is offline   Reply With Quote
Old Aug 15th, 2005, 11:58 AM   #8
CodeJunkie
Programmer
 
Join Date: Aug 2005
Location: England
Posts: 37
Rep Power: 0 CodeJunkie is on a distinguished road
Ok, thankyou for clarifying that ..
The reason for wanting to learn assembly is that i would like program`s that i have written to run on diffrent host machines, this ive yet to achieve without compatablity issues, so i am looking for a robust programming language that can be used on just about any machine without the need for huge amounts of resources to be installed prior to running it ....
(Maybe its the compilers i use, or the way i use them?)
So am finding out wat language to turn to next..
Ive heard of Deplhi, can any1 enlighten me?
Do i really need to go into assembly to ensure compatablity?
Any suggestions would be much appreciated !!

Last edited by CodeJunkie; Aug 15th, 2005 at 12:11 PM.
CodeJunkie is offline   Reply With Quote
Old Aug 15th, 2005, 1:19 PM   #9
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
Assembly language is about the last thing that will ensure compatibility. While AMD uses the x86 compatible machine language, it typically varies for each type of processor.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code.
Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers
DaWei is offline   Reply With Quote
Old Aug 16th, 2005, 6:40 AM   #10
CodeJunkie
Programmer
 
Join Date: Aug 2005
Location: England
Posts: 37
Rep Power: 0 CodeJunkie is on a distinguished road
O right ..... Do ya have any suggestions on a universal language?
CodeJunkie is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 3:59 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC