From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15385 invoked by alias); 10 Aug 2008 11:11:58 -0000 Received: (qmail 15377 invoked by uid 22791); 10 Aug 2008 11:11:58 -0000 X-Spam-Check-By: sourceware.org Received: from kuber.nabble.com (HELO kuber.nabble.com) (216.139.236.158) by sourceware.org (qpsmtpd/0.31) with ESMTP; Sun, 10 Aug 2008 11:11:13 +0000 Received: from isper.nabble.com ([192.168.236.156]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1KS8pL-0007RB-DW for gcc-help@gcc.gnu.org; Sun, 10 Aug 2008 04:11:11 -0700 Message-ID: <18912389.post@talk.nabble.com> Date: Sun, 10 Aug 2008 21:39:00 -0000 From: Robin-Vossen To: gcc-help@gcc.gnu.org Subject: GNU C++ Inline Assembler MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: robin-vossen@hotmail.com X-IsSubscribed: yes Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org X-SW-Source: 2008-08/txt/msg00097.txt.bz2 Hello, is there a known way to use MSVC++ Style Inline Assembler in GCC code? The main diffrence is that MSVC uses Intel Syntax. And GCC uses AT&T. I dont like AT&T... I wonder if there is a library or a function in GCC itself to compile the following code segment: (MSVC can do this..) int main () { int INTEGER; char CHARACTER; INTEGER = 1; __asm{ mov eax, [INTEGER] inc eax, esp mov [INTEGER], eax mov [CHARACTER], ah } return 0; } as you see I can use Pointers to variables. and use Intel Syntax. Can this be done? At this moment I run a Windows Version of GCC mainly. And I hate MSVC, takes long to load and stuff. So I HOPE that I can do this in GCC. So I can remove MSVC soon. Thanks, Cheers, Robin -- View this message in context: http://www.nabble.com/GNU-C%2B%2B-Inline-Assembler-tp18912389p18912389.html Sent from the gcc - Help mailing list archive at Nabble.com.