Advertisement

There's no such thing as a stupid question, but they're the easiest to answer.
Login
Search

Advertisement

Software Development Software Development
Search Search
Search for:
Tech Support Guy > > >

Solved: Can parts of a program's code be written in Assembly?


(!)

MockyConstructor's Avatar
MockyConstructor MockyConstructor is offline
Computer Specs
Account Disabled with 22 posts.
THREAD STARTER
 
Join Date: Aug 2012
Experience: Beginner
14-Aug-2012, 02:59 PM #1
Lightbulb Solved: Can parts of a program's code be written in Assembly?
I was just wondering if direct Assembly language code can be written to get low-level access to certain hardware aspects of an operating system, and be run with normal higher level code, like C# or Java.

But my main question is how exactly? Assembly code must be assembled using an assembler program, right? So how can it be assembled independently and run from a higher-level language at the same time to aid in code from, say, Java?

Is it possible for Java to run and have Assembly written code execute to aid in my software as part of the absolute program?

I'm a bit confused here, so any pointers would help.
Squashman's Avatar
Trusted Advisor with 19,643 posts.
 
Join Date: Apr 2003
Location: 1265 Lombardi Ave
14-Aug-2012, 03:20 PM #2
MockyConstructor's Avatar
MockyConstructor MockyConstructor is offline
Computer Specs
Account Disabled with 22 posts.
THREAD STARTER
 
Join Date: Aug 2012
Experience: Beginner
14-Aug-2012, 03:22 PM #3
Thanks!

That site should do the job.
Aftab's Avatar
Aftab Aftab is offline
Member with 72 posts.
 
Join Date: Oct 2003
15-Aug-2012, 05:26 PM #4
I know you said C# but, if you know C++, you can write assembly code in-line:

http://msdn.microsoft.com/en-us/libr...(v=vs.71).aspx
MockyConstructor's Avatar
MockyConstructor MockyConstructor is offline
Computer Specs
Account Disabled with 22 posts.
THREAD STARTER
 
Join Date: Aug 2012
Experience: Beginner
15-Aug-2012, 05:30 PM #5
Quote:
Inline assembly is not supported on the Itanium and x64 processors.
That ended my interest quickly.

I have a 64-bit processor.
As Seen On

BBC, Reader's Digest, PC Magazine, Today Show, Money Magazine
WELCOME TO TECH SUPPORT GUY!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.


Tags
assembly, c sharp, java, programming, programs

(clock)
THIS THREAD HAS EXPIRED.
Are you having the same problem? We have volunteers ready to answer your question, but first you'll have to join for free. Need help getting started? Check out our Welcome Guide.

Search Tech Support Guy

Find the solution to your
computer problem!




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


WELCOME
You Are Using: Server ID
Trusted Website Back to the Top ↑