Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 02-02-2009, 12:02 PM   #1
LQ Newbie
Registered: Feb 2009
Posts: 1

Rep: Reputation: 0
MSVC => GCC inline assembly translation

I hope this doesn't wind up being an annoying repeat of what I just tried to post....


As part of another project, I started a subproject to convert inline assembly in Microsoft C/C++ to GCC to support cross-platform compilation. Right now it's in the form of a Perl script, although I'm thinking about moving it over to Ruby.

It right now requires the use of "-masm=intel", but a major idea for this is to have it support AT&T output, although there's no timetable for that. As part of that idea I would need a seriously complete definition of what needed to be done to effect that translation (ie., a seriously complete definition of everything the AT&T syntax requires, right down to every tweaky detail for each mnemonic). Note that I'm completely new to GCC.

What I'm really looking for, though, is feedback on what I've done so far, which as far as I'm concerned is free for anyone to use. The site for it is at . I would really value any feedback and/or suggestions on this, and will gladly incorporate any one's useful corrections/additions/whatever to make this a useful tool for everyone to use. Direct email is the best way to provide feedback. Thanks in advance.

Randy Langer
Old 02-03-2009, 10:06 AM   #2
LQ Guru
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,679
Blog Entries: 4

Rep: Reputation: 3947Reputation: 3947Reputation: 3947Reputation: 3947Reputation: 3947Reputation: 3947Reputation: 3947Reputation: 3947Reputation: 3947Reputation: 3947Reputation: 3947
Systematically get rid of all of that "inline assembly" stuff.

It's an obsolete technique that, in modern environments, can actually slow your program down very considerably. Not to mention "make it utterly impossible to port."


assembly, inline

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Inline assembly from C: mmx.h Tischbein Programming 1 03-06-2008 10:37 PM
inline assembly in gcc gursev Programming 2 03-04-2005 02:17 AM
problems with gcc inline assembly using xmm registers Y0jiMb0 Programming 3 12-05-2004 02:59 PM
Inline Assembly Question tjt Programming 3 08-08-2004 04:38 AM
subrouine_call in gcc inline assembly sakeeb Programming 4 08-15-2002 10:22 PM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 03:20 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration