Quantcast

A community for students. Sign up today!

Here's the question you clicked on:

55 members online
  • 0 replying
  • 0 viewing

Vibhor16

  • 2 years ago

Will assembly language( 80x86) work on any platform(Linux,windows,etc.) or are they limited to the processors(Pentium) ?How are cross platform software developed?

  • This Question is Closed
  1. MahdiMP
    • 2 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    i dont know really if you're coding low-level but with high-level language like c# and .net framework your codes will be translated to a middle language that works well on all platforms

  2. Vibhor16
    • 2 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    I disagree!! For example in c++ , the code written in tubo c++ can run on visual c++ but code in visual c++ will not run in turbo c++. Also , you must have seen on many websites when downloading software that there are different links for Linux , Mac and Windows(Even for XP and Vista sometimes).

  3. agdgdgdgwngo
    • 2 years ago
    Best Response
    You've already chosen the best response.
    Medals 5

    Assembly language is limited to a particular machine platform such as the x86 architecture. It usually differs across different Operating systems since the system calls executed by the processor can be different on another operating system. Cross platform software is developed using high level languages. High level languages are often designed with portability with mind. Compilers can translate high-level source code into a target platform's instructions i.e. C code being translated to native assembly. Nowadays, it's quite popular for compilers to translate the source code to an intermediate form such as bytecode, to be executed by a virtual machine, resulting in portability of your software.

  4. MahdiMP
    • 2 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    yes as in java that codes compiled in bytecode , Microsoft high level progamming languages do same with compiling code into intermediate code named CIL , and JIT runs this CIL

  5. Vibhor16
    • 2 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    OK , you are talking about high level languages like Java which will run on any platform (like the Pure Java setup) but then in what language are compilers developed i.e what is in the high level language that when they are translated to machine language they are same on all the platforms but this is not the same for low level language like C?

  6. agdgdgdgwngo
    • 2 years ago
    Best Response
    You've already chosen the best response.
    Medals 5

    right. although thwe virtual machine is implemented differently on different platforms, the virtual machine itself executes instructions the way you'd expect even across different platforms

  7. agdgdgdgwngo
    • 2 years ago
    Best Response
    You've already chosen the best response.
    Medals 5

    Compilers are usually developed in C :-D

  8. MahdiMP
    • 2 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    cross-platform ensure you code you wrote will work well in all platforms , of course the machine code differs from a machine to another machine , so cross-platform use techniques to do this task not any thing else

  9. agdgdgdgwngo
    • 2 years ago
    Best Response
    You've already chosen the best response.
    Medals 5

    right

  10. Vibhor16
    • 2 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    Then what about C compilers? I am trying to find a link between different OS.There must be a language common for all the OS.If it is Binary number system the it has a good scope(or one should learn it for a better understanding of programming)? @MahdiMP : What techniques?

  11. agdgdgdgwngo
    • 2 years ago
    Best Response
    You've already chosen the best response.
    Medals 5

    C compilers themselves are written in C

  12. Vibhor16
    • 2 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    So C can be considered as a universal language that is basic and same for all the systems?

  13. agdgdgdgwngo
    • 2 years ago
    Best Response
    You've already chosen the best response.
    Medals 5

    no

  14. MahdiMP
    • 2 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    i hope this helps you : http://www.goingware.com/tips/getting-started/

  15. Vibhor16
    • 2 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    I said : " I am trying to find a link between different OS.There must be a language common for all the OS.If it is Binary number system the it has a good scope(or one should learn it for a better understanding of programming)? "

  16. agdgdgdgwngo
    • 2 years ago
    Best Response
    You've already chosen the best response.
    Medals 5

    great read.

  17. agdgdgdgwngo
    • 2 years ago
    Best Response
    You've already chosen the best response.
    Medals 5

    read that and you'll begin to understand why nothing is completely portable yet :-D

  18. Vibhor16
    • 2 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    So even if someone learns Binary , he can fail to understand any random machine on any random platform?

  19. agdgdgdgwngo
    • 2 years ago
    Best Response
    You've already chosen the best response.
    Medals 5

    Even binary code is different (VERY DIFFERENT) across different machines.

  20. agdgdgdgwngo
    • 2 years ago
    Best Response
    You've already chosen the best response.
    Medals 5

    actually, the binary code is the difference across machines, and one of the purposes of high level languages is to bridge such differences.

  21. Vibhor16
    • 2 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    :P OK then can you recommend a set of languages so that to be a versatile programmer?

  22. MahdiMP
    • 2 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    :D , both java and c

  23. agdgdgdgwngo
    • 2 years ago
    Best Response
    You've already chosen the best response.
    Medals 5

    So you want to learn how to cover all possible platforms and make your work as portable as possible? Try Java :-D

  24. agdgdgdgwngo
    • 2 years ago
    Best Response
    You've already chosen the best response.
    Medals 5

    Oh and also C; there's a C compiler for virtually everything from a calculator, a gameboy, your desktop, etc.

  25. agdgdgdgwngo
    • 2 years ago
    Best Response
    You've already chosen the best response.
    Medals 5

    perhaps someday we will see microwave ovens with a .NET implementation, but nowadays C is the way to go, or Java (and some other technologies) if you like the web

  26. Vibhor16
    • 2 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    Is machine language recommended to understand the working of C and Java?If yes ,then which one is better hex. or binary?

  27. MahdiMP
    • 2 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    @Vibhor16 this wiki for you http://en.wikipedia.org/wiki/Cross-platform

  28. Vibhor16
    • 2 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    thx. According to this python is a scripting language and I have read that python is good for calculations ,so then should I go for Python to?Isn't it more like Java?

  29. agdgdgdgwngo
    • 2 years ago
    Best Response
    You've already chosen the best response.
    Medals 5

    Python and Java are used for different things. If your real question is what programming language is the one to master, then I can't really answer that.

  30. Vibhor16
    • 2 years ago
    Best Response
    You've already chosen the best response.
    Medals 0

    So what languages should I master so that I can cover up max. requirements of a system?

  31. agdgdgdgwngo
    • 2 years ago
    Best Response
    You've already chosen the best response.
    Medals 5

    That really depends on your target application i.e. are you planning on developing a website, building a robot, an operating system, a big video-game, a math application, etc.

  32. jagatuba
    • 2 years ago
    Best Response
    You've already chosen the best response.
    Medals 1

    I'm not sure if this will add any further understanding or not, but I used to program in assembly and machine language on the old MOS 6502. One thing that helped me understand it was to think of the system (architecture and OS) as a big set of cubby holes. Each cubby is a memory address that you can put a value into. These values tell the machine what to do. More specifically, whether a certain part of the curit should be on or off. Now every processor is built differently. Each one has circuits that perform the same functions, but they are in different locations or what have you. So for any given machine the cubby holes are going to be different. Cubby hole 10 on one machine might be cubby hole 151 on another. Therefore, when you stick your values in the cubby holes on one machine, you cannot stick them in the same hole on another. In order to effectively program in low-level languages you must be very intimate with the particular architectural you are working on.

  33. Not the answer you are looking for?
    Search for more explanations.

    • Attachments:

Ask your own question

Ask a Question
Find more explanations on OpenStudy

Your question is ready. Sign up for free to start getting answers.

spraguer (Moderator)
5 → View Detailed Profile

is replying to Can someone tell me what button the professor is hitting...

23

  • Teamwork 19 Teammate
  • Problem Solving 19 Hero
  • You have blocked this person.
  • ✔ You're a fan Checking fan status...

Thanks for being so helpful in mathematics. If you are getting quality help, make sure you spread the word about OpenStudy.

This is the testimonial you wrote.
You haven't written a testimonial for Owlfred.