Forum     

Go Back   Digit Technology Discussion Forum > Software > Programming
Register FAQ Calendar Mark Forums Read

Programming The destination for developers - C, C++, Java, Python and the lot


Closed Thread
 
LinkBack Thread Tools Display Modes
Old 26-05-2006, 06:12 AM   #1 (permalink)
OSS Enthusiast!
 
nitish_mythology's Avatar
 
Join Date: Sep 2005
Location: Hills of Kumaoun
Posts: 664
Default Assembly Languages


Can u pls guide me abt assembly languag programming....

What is the diff between them and HLL?
Examples(Is perl too an assembly level language?)
There use in the present time.

Thnx...
__________________
Do you know, Shinigamis only eat apples???
nitish_mythology is offline  
Advertisements. Register and be a member of the community to get rid of them.
Advertisement

Old 26-05-2006, 10:30 AM   #2 (permalink)
True Techie
 
nithinks's Avatar
 
Join Date: Apr 2005
Posts: 260
Default Re: Assembly Languages

assembly level languages are the basic for all programming languages that we
work with.
All softwares that we execute will ultimately in ASSEMBLY LEVEL only!
A.L.L consists a set of instructions, including register to register ,reg to memory ,and mem to reg instructions
typical A.L.L looks something like

assume CS code,DS data
MOV AX,DATA
MOV DS,AX
data ends
code segment
...
...
...
code ends

this program consists two segments DATA and CODE respy.
AX,BX,CX,DX are general purpose CPU registers(16bit or 32 bit)
DS etc are data segment stack segment is SS
suppose we want to add the contents of two registers,
ADD AX,BX
the result will be stored in BX
like this u have to write the entire program
even TC,TC++ etc are basically designed using assembly level lang
only.
__________________
http://www.mytechyard.com/
nithinks is offline  
Old 26-05-2006, 10:39 AM   #3 (permalink)
Beware of the innocent
 
ilugd's Avatar
 
Join Date: Dec 2005
Posts: 1,024
Default Re: Assembly Languages

do a search on google for "assembly language simple tutorial" and browse through the results. You will get quite a few of them.

However be warned that assembly language programming is not easy. And if you really want to learn programming, start with some other language, as assembly screws up your programming style. Try python, c++ or java instead.

Just my two cents!
ilugd is offline  
Old 26-05-2006, 11:10 AM   #4 (permalink)
GaurishSharma.com
 
gary4gar's Avatar
 
Join Date: May 2005
Location: Jaipur
Posts: 4,116
Default Re: Assembly Languages

in lay man words;
assembly language [edited]reason oops my bad! ! !
HLL uses comman words as systax and then a complier or interpretor converts them in binary code.hope its clear

regrads,
gary

Last edited by gary4gar; 26-05-2006 at 11:23 PM.
gary4gar is offline  
Old 26-05-2006, 11:19 AM   #5 (permalink)
OSS Enthusiast!
 
nitish_mythology's Avatar
 
Join Date: Sep 2005
Location: Hills of Kumaoun
Posts: 664
Default Re: Assembly Languages

I hv no intention to learn assembly level programming...
Two ques--
1.Is it used nowdays, if yes than whats its use?
2.Is perl an assembly level language?
__________________
Do you know, Shinigamis only eat apples???
nitish_mythology is offline  
Old 26-05-2006, 04:04 PM   #6 (permalink)
In The Zone
 
puja399's Avatar
 
Join Date: Jul 2005
Posts: 324
Default Re: Assembly Languages

This is what I know:
1) Assembly language does not involve writing programs in Machine Code or Binary code. Assembler converts the assembly language code into object code, unlike other Middle/High level languages where the compiler converts the respective code into machine/object code. It is the Linker that converts the Object code into Machine code or Binary code. So, the opinion that Assemble language uses binary code to express the routine is not correct. HLL uses terms and syntaxes that are closer to english terms, and uses functions/procedures/libraries that hide the internal working of the code, and thus making the code more readable /reusable.

2) Interpreter does not convert anything, it just interprets the code line by line and executes it within its own virtual machine, like, VBScript, Perl etc. This is the basic difference between Assembler/Compiler and Interpreter, that is u cannot get the Object code from the Interpreter, and thus Native code cannot be obtained from it (excluding the situations where JIT compiler is available from within the VM).
3) Assembly language programming is still very much useful nowadays (even in this era of Java and .NET), especially if u write device drivers or want to reverse engineer anything. As a matter of fact, there are a group of people who use Win32 Assembly language to create very small, incredibly fast and useful freewares that also look nice. In fact, it is often said that a good part of the Windows OS itself is written in Assembly language. Assembly language programming is available in Linux platform also.

4) Perl is neither Assembler nor compiler, but only an Interpreter, but I already said that earlier.

5)Unlike popular beliefs, Win32 Asm Language is not that difficult (its certainly much easier than the 16-bit era), but it requires expert knowledge nevertheless. Its better to learn the basic programming capabilities (with C++ or Java) and then try Asm.
puja399 is offline  
Old 26-05-2006, 04:17 PM   #7 (permalink)
In The Zone
 
rohan's Avatar
 
Join Date: Mar 2004
Location: Bangalore
Posts: 297
Default Re: Assembly Languages

It's better to go with C/C++. Java isn't a that good language. Java as I view it has been a failure. Perl and Python are also good languages and excellent if you plan to go towards linux development. Almost all distros today come with deticated Perl and Python support.
__________________
If there wasn't greed, we still would have been single-celled organisms.
rohan is offline  
Old 26-05-2006, 06:02 PM   #8 (permalink)
In The Zone
 
puja399's Avatar
 
Join Date: Jul 2005
Posts: 324
Default Re: Assembly Languages

Quote:
Originally Posted by rohan
...
Java as I view it has been a failure......
What is the reason for such a view??

Last edited by puja399; 26-05-2006 at 06:04 PM.
puja399 is offline  
Old 27-05-2006, 05:20 PM   #9 (permalink)
OSS Enthusiast!
 
nitish_mythology's Avatar
 
Join Date: Sep 2005
Location: Hills of Kumaoun
Posts: 664
Default Re: Assembly Languages

Java a failure!!
I dont think so....
__________________
Do you know, Shinigamis only eat apples???
nitish_mythology is offline  
Old 30-05-2006, 11:36 AM   #10 (permalink)
Asterisk enthusiast
 
abhasbajpai's Avatar
 
Join Date: Jun 2004
Location: Lucknow
Posts: 251
Default Re: Assembly Languages

java now days mostly used for mobile plateform or embeded platefporfms only
BTW could any one tell me a good sucessfull (comerssioly)standalone application devolped in JAVA and why any biggy (adode, IBM or any uses java in their application where as c++ is used everywhere)
abhasbajpai is offline  
Old 30-05-2006, 12:17 PM   #11 (permalink)
Wise Old Owl
 
JGuru's Avatar
 
Join Date: Dec 2005
Location: Space-time continuum
Posts: 1,646
Wink Re: Assembly Languages

Java is used widely on the Server-side. There are 5 million Java developers
worldwide. On the Mobile front it's gaining ground. Of late Java GUI applications are flooding
thanks to some performance improvements implemented by Sun.
Lot of fortune 500 companies like Oracle, HP, IBM , BEA, Oracle use Java.
JBoss is a very successful Web Server fully written in Java, now acquired by
RedHat. A company called Techdigm has developed an Office Suite fully in Java.
It's called Techdigm Office 2.1. It's fully compatible with MS Office.
Checkout the link for yourself:
http://www.techdigm.com/product.jsp
Still not convinced, checkout Swing Sightings:
http://java.sun.com/products/jfc/tsc...ngs/index.html
There are hundreds of GUI applications developed using Java.

Last edited by JGuru; 30-05-2006 at 12:23 PM.
JGuru is offline  
Old 30-05-2006, 03:03 PM   #12 (permalink)
Legen-wait for it-dary!
 
dheeraj_kumar's Avatar
 
Join Date: Dec 2004
Location: Chennai
Posts: 2,471
Default Re: Assembly Languages

dont tell me you guys dont use LimeWire

win32 asm is not difficult, its just a little complicated. you just need to know about the processor, registers(high, low) and extended ones(EIP, EDI etc) also about interrupts. thats the basic in asm. its not like high level languages, but is the most simplest form of a code.
dheeraj_kumar is offline  
Old 30-05-2006, 03:08 PM   #13 (permalink)
In The Zone
 
rohan's Avatar
 
Join Date: Mar 2004
Location: Bangalore
Posts: 297
Default Re: Assembly Languages

abhasbajpai is right.. The Bytecode nature (compiled/interpreted) of Java applets is the main reason for problems. Any Java program is 10 to 20 times slower than it's C++ counterpart(if written optimally). Java hasn't been succesfull in complete utilization of the OS's API as has been C++. Java is definitely an easier language, but the programming language 'D' (http://digitalmars.com/d) is equally simpler and compiles to executables. Java is used only on mobile platforms and for internal processes and servlets(which are also out of fashion now) but never for commercial applications.
__________________
If there wasn't greed, we still would have been single-celled organisms.
rohan is offline  
Old 31-05-2006, 11:31 AM   #14 (permalink)
Asterisk enthusiast
 
abhasbajpai's Avatar
 
Join Date: Jun 2004
Location: Lucknow
Posts: 251
Default Re: Assembly Languages

j guru agreed
but could tell me why the SUN has devloped its office suite (star office and open source open office.org)in c++ and not in JAVA that answers my question and do you have stats how many devlopers for c++ and related languges
and could tell me the market share of APATCHE and JBoss
BTW star office and open office.org are most popular office suite after MS Office

Last edited by abhasbajpai; 31-05-2006 at 11:33 AM.
abhasbajpai is offline  
Old 31-05-2006, 01:34 PM   #15 (permalink)
OSS Enthusiast!
 
nitish_mythology's Avatar
 
Join Date: Sep 2005
Location: Hills of Kumaoun
Posts: 664
Default Re: Assembly Languages

Finally JGuru is here to answer..
I was waiting for this!!
__________________
Do you know, Shinigamis only eat apples???
nitish_mythology is offline  
Old 31-05-2006, 03:09 PM   #16 (permalink)
In The Zone
 
puja399's Avatar
 
Join Date: Jul 2005
Posts: 324
Default Re: Assembly Languages

Friends, I think we are forgetting what the topic was......
puja399 is offline  
Old 31-05-2006, 03:19 PM   #17 (permalink)
Broken In
 
khansdream's Avatar
 
Join Date: Nov 2005
Location: Skull Island
Posts: 126
Default Re: Assembly Languages

Yes Puja399, you were explaining assembly lang. And i really appreciate the way you explained. I wanted to rep you but its disable presently by mods (ref. my anothor thread...........!!!

Can u tell me how can I format a hdd (with 75% bad sectors) by using this lang. I know its possible bcoz one of my friend works with a data recovery firm and after recovering data they simply format a damaged hdd and sell out on low prices.
khansdream is offline  
Old 31-05-2006, 03:25 PM   #18 (permalink)
Your Maker.
 
MysticHalo's Avatar
 
Join Date: Jan 2006
Location: mumba][
Posts: 397
Default Re: Assembly Languages

Quote:
Java is now nearly equal to (or faster than) C++ on low-level and numeric benchmarks. This should not be surprising: Java is a compiled language (albeit JIT compiled). Nevertheless, the idea that "java is slow" is widely believed. Why this is so is perhaps the most interesting aspect of this article.
Let's look at several possible reasons:
  • Java circa 1995 was slow. The first incarnations of java did not java a JIT compiler, and hence were bytecode interpreted (like Python for example). JIT compilers appeared in JVMs from Microsoft, Symantec, and in Sun's java1.2. This explanation is implausible. Most "computer folk" are able to rattle off the exact speed in GHz of the latest processors, and they track this information as it changes each month (and have done so for years). Yet this explanation asks us to believe that they are not able to remember that a single and rather important language speed change occurred in 1996.
  • Java can be slow still. For example, programs written with the thread-safe Vector class are necessarily slower (on a single processor at least) than those written with the equivalent thread-unsafe ArrayList class. This explanation is equally unsatisfying, because C++ and other languages have similar "abstraction penalties". For example, The Kernighan and Pike book The Practice of Programming has a table with the following entries, describing the performance of several implementations of a text processing program:
    Version400 MHz PII C 0.30 sec C++/STL/deque 11.2 sec C++/STL/list 1.5 sec Another evidently well known problem in C++ is the overhead of returning an object from a function (several unnecessary object create/copy/destruct cycles are involved).
  • Java program startup is slow. As a java program starts, it unzips the java libraries and compiles parts of itself, so an interactive program can be sluggish for the first couple seconds of use. This approaches being a reasonable explanation for the speed myth. But while it might explain user's impressions, it does not explain why many programmers (who can easily understand the idea of an interpreted program being compiled) share the belief.
Two of the most interesting observations regarding this issue are that:
  1. there is a similar "garbage collection is slow" myth that persists despite decades of evidence to the contrary, and
  2. that in web flame wars, people are happy to discuss their speed impressions for many pages without ever referring to actual data.
Together these suggest that it is possible that no amount of data will alter peoples' beliefs, and that in actuality these "speed beliefs" probably have little to do with java, garbage collection, or the otherwise stated subject. Our answer probably lies somewhere in sociology or psychology. Programmers, despite their professed appreciation of logical thought, are not immune to a kind of mythology, though these particular "myths" are arbitrary and relatively harmless.

Benchmarks here
IMo, JVM is a bigger nuisance than speed
__________________
“Talent is a flame, but genius is a fire.”
MysticHalo is offline  
Old 01-06-2006, 09:18 PM   #19 (permalink)
Wise Old Owl
 
JGuru's Avatar
 
Join Date: Dec 2005
Location: Space-time continuum
Posts: 1,646
Default Re: Assembly Languages

Why Sun has developed StarOffice & OpenOffice using C++?
The answer is most users have only 256 MB RAM.Big applications
like Office suite written in Java need 512 MB RAM or higher to
make it load fast. I use NetBeans , which is written in Java, so
your System should have a minimum of 512 MB RAM to run it
smoothly. Give it 1 GB RAM it will run even more faster!!
Since most of the users have either 128 or 256 MB RAM installed
in their System, Sun decided to write the Office suite in C++.
Or they could have written the whole thing in Java and compiled
it using a JIT compiler, which converts the bytecode to 'EXE'.
Sun could have written most of the Java API in C++, that would have
made Java zoom in Jet speed. But they didn't do it.
Of late Sun is trying to make Java more faster & stable.
JGuru is offline  
Old 12-06-2006, 11:50 AM   #20 (permalink)
Asterisk enthusiast
 
abhasbajpai's Avatar
 
Join Date: Jun 2004
Location: Lucknow
Posts: 251
Default Re: Assembly Languages

Quote:
Originally Posted by JGuru
Why Sun has developed StarOffice & OpenOffice using C++?
The answer is most users have only 256 MB RAM.Big applications
like Office suite written in Java need 512 MB RAM or higher Give it 1 GB RAM it will run even more faster!!.
now that answer the question that why java is for future use not for today maybe by than c++ will be evilved more than java and take its leap forward

Quote:
Sun could have written most of the Java API in C++, that would have
made Java zoom in Jet speed. But they didn't do it.
Of late Sun is trying to make Java more faster & stable.
this defies suns perpose if they use c++ whats the use of java even in api
whel one more quetion when java can run on embeded systems having memories in less than tens of mb (like in cell phones where some times the memorie is less than 2mb) than why it needs such high reuirement on pc
abhasbajpai is offline  
Closed Thread

Bookmarks

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
Trackbacks are On
Pingbacks are On
Refbacks are On


 
Latest Threads
- by Charan
- by Sarath
- by clmlbx

Advertisement




All times are GMT +5.5. The time now is 12:40 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.

Search Engine Optimization by vBSEO 3.3.2