1.

Solve : i need compiler run help?

Answer»

hi i m akmal.i m interested in programming.i m beginner and i want to ask how can i run compiler.i failed to do that.thanksWe would like to know more about sure to experience and what your objective is. Do you wish to become a professional programmer? Or are you interested in some of their field where programming would be helpful to you?
At the present time systems level programming is done in some version of C or perhaps C++, and there are a number of good versions of these programs. They are written with a common text editor and then submitted to a compiler. If there are no errors but compiler will link the object code into a library and create an executable file.
However, perhaps your interest is not in systems level programming. The greatest need in programming at the present time is in applications that are custom made for a specific industry or business.
Some of these kind of applications can be written in a script language. A commonly used script language is called Python. This is easy to use and has the potential of being very harmful in specific applications.
If you write a very good program application in Python, it also can later become complied okay and has an efficiency that is near that of a system-level program.
Quote from: Geek-9pm on May 02, 2010, 10:09:43 PM

If you write a very good program application in Python, it also can later become complied okay and has an efficiency that is near that of a system-level program.

False. But compiled VS. interpreted is redundant anyway. a bubble sort in assembly will always be slower then a shell sort in any interpreted language. Besides, most Python interpreters implement Just-In-Time Compilation, like most javascript engines and the .NET CLR. .NET programs are compiled to IDL, which the CLR compiles to instructions specific to the machine being run on as you run it. a good number of script languages do this as well, but convert the actual script language in memory to machine-specific instructions. Still others use a sort of intermediate language that the execution engine can interpret and run faster then the pure script code.

You can convert a Python script/application to a actual executable but it is still dependent on a script interpreter- there is no python "compiler" that actually makes the program machine code. this is more an advantage then a disadvantage, since it encourages the creation of cross-platform applications.

Quote
The greatest need in programming at the present time is in applications that are custom made for a specific industry or business.
[Citation needed].So you make a broad sweeping statement and give no citations. Then you come back and want me to give a citation for something that is generally known to be true.
So I suppose then this means the rules you give out don't apply to yourself. Well, that's okay. Perhaps you're an absolute genius. In which case I could never convince you of anything anyway.
The real issue is not about which language you use. Python is a good learning language and it is actually used in real-world applications. I mean major real-world applications. Not writing a new video game, but coming up with a program that will help a business fix a real problem they have that needs a practical program that can be written in a short period of time and produce RELIABLE results. Speed of execution is not the issue. Speed of development and deployment and reliability are key issues.
Now as to citations, here is one from a reliable source, which I will not supply, since you know everything anyway.

Quote
Data shows that the combination of deep technical IT skills with PROJECT management or leadership experience, as well as looking at the intersection of IT and risk management for the business, are the areas in highest demand," says Jeff Schwartz, principal of human capital at Deloitte Consulting
what broad sweeping statement did I make?

Quote from: BC_Programmer on May 03, 2010, 07:12:39 PM
what broad sweeping statement did I make?
Quote
there is no python "compiler" that actually makes the program machine code.

They CALL it a compiler
http://docs.python.org/library/compiler.html

Pure machine code is possible, not very practical.
http://stackoverflow.com/questions/138521/is-it-feasible-to-compile-python-to-machine-code

The OP is having some trouble learning C and my intent to suggest to him to learn a language that is suitable for a beginner. Sometimes beginner's what to take on C because many claim it is the 'best' language.

Also, I wanted him to understand that more skills are needed that just to ability to code in a older language.

Quote
High-level languages need not be slower than low-level ones.
Quote from http://psyco.sourceforge.net/
Quote from: Geek-9pm on May 03, 2010, 09:02:01 PM
They call it a compiler
http://docs.python.org/library/compiler.html
Which compiles to "python bytecode"

Quote
Pure machine code is possible, not very practical.
Only, as discussed in the thread, by converting it to another language entirely.

Quote
The OP is having some trouble learning C and my intent to suggest to him to learn a language that is suitable for a beginner.
I didn't disagree with this.

Quote
Also, I wanted him to understand that more skills are needed that just to ability to code in a older language.
Quote
Quote
High-level languages need not be slower than low-level ones.
Quote from http://psyco.sourceforge.net/

Nor did I disagree with this- in fact, I argued the very same:

Quote
compiled vs. interpreted is redundant anyway. a bubble sort in assembly will always be slower then a shell sort in any interpreted language.
the higher level languages are interpreted perhaps not as their code form but maybe as bytecode (java, clr, python) - lower level ones are either assembled or compiled into machine code. Not necessarily a strict requirement, of course.

But as I said- it's more important what you implement in the language then the language choice itself- you could try to squeeze as much speed out of your assembly bubblesort routine, but it will still be many orders of magnitude slower then a quicksort or shellsort written in python, or another interpreted language.
I enjoyed your response. Hope the OP gets some value from all this.
Quote
But as I said- it's more important what you implement in the language then the language choice itself- you could try to squeeze as much speed out of your assembly bubblesort routine, but it will still be many orders of magnitude slower then a quicksort or shellsort written in python, or another interpreted language.
Right! Method is more important trivial gains in speed. Newer CPUs are now closer to RISC structure. The micro -code can be worked over and you can have a CPU that nearly does byte-code directly. But I am NOT aware of any major implementations of this. Not Yet.
(For more about JAVA RISC CPU.)


Discussion

No Comment Found