|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
|
|
#1
|
|||
|
|||
|
Does Ada, Fortran & Java support assembly code inserts like C++ does?
Example: (from The C++ Programming Language, Special Edition by Bjarne Stroupstrup, page 806; grammar for assembly code inserts.) asm( string-literal ) ; |
|
#2
|
||||
|
||||
|
no, no idea, no.
Java will never in any case, since the whole idea is that it's bytecode and runs inside it's own little box.
__________________
~James [Not currently seeking freelance work] Like philosophy or interested in spirituality? Philosophorum. Game Dev Experts Forums Foresight Linux - Because your desktop should be cool! Linux FAQ FedoraFAQ UbuntuGuide |
|
#3
|
||||
|
||||
|
Quote:
I doubt it, Ada is very similar to Java in a lot of ways but I've never used it. Fortran on the other hand is really pretty close to assembly anyway but I don't think you can embed raw assembly in it. It should compile down into ASM so you could play with it that way? Mark.
__________________
... > (define links (list google scheme ruby python others ...)) ; Read my blog at http://netytan.blogspot.com/. > _
|
|
#4
|
||||
|
||||
|
You can link to assembly modules from FORTRAN (yes, the CAPS are intentional). Some compilers may even allow embedded asm statements, but this construct isn't part of the standard FORTRAN language (yet!)
__________________
Up the Irons What Would Jimi Do? Smash amps. Burn guitar. Take the groupies home. "Death Before Dishonour, my Friends!!" - Bruce D ickinson, Iron Maiden Aug 20, 2005 @ OzzFest Down with Sharon Osbourne Puzzle of the Month solved by sizeablegrin, etienne141 and L7Sqr, superior C/C++ programmers of the month |
|
#5
|
||||
|
||||
|
Quote:
Fortran was originally called FORTRAN but it's much more common to write it as "Fortan" now .Quote:
I had to write a paper about different programming languages a while ago. Take care Scorpi, Mark. |
|
#6
|
||||
|
||||
|
It's becoming less common, there hasn't been a new fortran compiler since 2001 IIRC.
Sometimes its necessary for things to die out. |
|
#7
|
||||
|
||||
|
Quote:
Actually we now have Fortran 2003. Also, my dad's workplace still uses it. Fortran still kicks butt when it comes to scientific computation (due in part to the large # of math libraries available to compute nearly anything) |
|
#8
|
||||
|
||||
|
Quote:
>>calpol2004 disagrees: well that wouldn't be very good now would it. if the lower level languages die out, how are we going to make higher level compilers (efficient ones)? How many compilers do you know that compile code to fortran? Nuff said. |
|
#9
|
||||
|
||||
|
Why embedded assembly? Is there something you need to use assembly for that precludes linking together separate object-code files? Pretty muchd any language allows you to link to separately assembled functions. In the case of Java, you need to use the native code interface (JNI), however.
Ada does have a standard library for inline assembly, named System.Machine_Code, though AFAICT it's an optional library that not all implementations support. The details will vary from compiler to compiler; you can look at the GNAT documentation section on inline code for a typical example.
__________________
Rev First Speaker Schol-R-LEA;2 JAM LCF ELF KoR KCO BiWM TGIF #define KINSEY (rand() % 7) λ Scheme is the Red Pill Scheme in Short • Understanding the C/C++ Preprocessor Taming Python • A Highly Opinionated Review of Programming Languages for the Novice, v1.1 FOR SALE: One ShapeSystem 2300 CMD, extensively modified for human use. Includes s/w for anthro, transgender, sex-appeal enhance, & Gillian Anderson and Jason D. Poit clone forms. Some wear. $4500 obo. tverres@et.ins.gov Last edited by Schol-R-LEA : March 2nd, 2006 at 02:03 AM. |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > Other Programming Languages > Ada, Fortran & Java Assembler Support |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|