Thread: Re: [Dev-C++] InLineAssembler in Dev-C++
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: David M. <ci...@ya...> - 2003-10-06 22:11:59
|
Yes it does. However it is mingw that supports inline assembler not Dev-C++. The thing is that mingw supports the AT&T syntax (search google you will find loads of examples) not the standard i*86 syntax. You can probably check the documentation at www.mingw.org or just search in google. Happy Coding David McKen ----- Original Message ----- From: "Ursin Solèr" <urs...@pm...> To: <dev...@li...> Sent: Monday, October 06, 2003 5:06 AM Subject: [Dev-C++] InLineAssembler in Dev-C++ > Hi folks > > Does Dev-C++ fully support inlineassembling? > Does anyone of you have a working example? > > Thanks, very much!! ;) > -- > Ursin Solèr > Physiklaborant > > Observatorium Davos (PMOD/WRC) > Dorfstrasse 33 > CH-7260 Davos Dorf > > Tel.: +41 81-417 5144 > Fax.: +41 81-417 5100 > > http://www.pmodwrc.ch/ > > *********************************************************************** > Zwei Planeten treffen sich im All. "Wie geht's?", fragt der eine. > "Schlecht", sagt der andere. "Einfach miserabel, ich habe Menschen." > "Mach dir nichts draus", sagt der eine, "das vergeht." > *********************************************************************** > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users __________________________________ Do you Yahoo!? The New Yahoo! Shopping - with improved product search http://shopping.yahoo.com |
|
From: Daniel G. <sp...@ho...> - 2003-10-07 08:10:03
|
Is it very different to what is used by visual C++ / visual studio .NET ?
For example is VC++ I could do
// Add the sum of some integers declared earlier
__asm
{
// eax is the target, move BigInt onto eax.
mov eax, dword ptr[BigInt]
// eax is the target (with BigInt on it), add SmallInt to the target
add eax, dword ptr[SmallInt]
// Move eax onto the new target, the variable that is the result
mov dword ptr[ResultInt], eax
}
std::cout<< ResultInt << std::endl;
Would this simple piece of code be radically different?
Daniel
>From: David McKen <ci...@ya...>
>Reply-To: ci...@ya...
>To: Ursin "Solèr" <urs...@pm...>,
>dev...@li...
>Subject: Re: [Dev-C++] InLineAssembler in Dev-C++
>Date: Mon, 6 Oct 2003 15:11:57 -0700 (PDT)
>
>Yes it does. However it is mingw that supports inline
>assembler not Dev-C++.
>The thing is that mingw supports the AT&T syntax (search
>google you will
>find loads of examples) not the standard i*86 syntax. You
>can probably check
>the documentation at www.mingw.org or just search in
>google.
>
>Happy Coding
>David McKen
>
>
>----- Original Message -----
>From: "Ursin Solèr" <urs...@pm...>
>To: <dev...@li...>
>Sent: Monday, October 06, 2003 5:06 AM
>Subject: [Dev-C++] InLineAssembler in Dev-C++
>
>
> > Hi folks
> >
> > Does Dev-C++ fully support inlineassembling?
> > Does anyone of you have a working example?
> >
> > Thanks, very much!! ;)
> > --
> > Ursin Solèr
> > Physiklaborant
> >
> > Observatorium Davos (PMOD/WRC)
> > Dorfstrasse 33
> > CH-7260 Davos Dorf
> >
> > Tel.: +41 81-417 5144
> > Fax.: +41 81-417 5100
> >
> > http://www.pmodwrc.ch/
> >
> >
>***********************************************************************
> > Zwei Planeten treffen sich im All. "Wie geht's?", fragt
>der eine.
> > "Schlecht", sagt der andere. "Einfach miserabel, ich habe
>Menschen."
> > "Mach dir nichts draus", sagt der eine, "das vergeht."
> >
>***********************************************************************
> >
> >
> >
> > -------------------------------------------------------
> > This sf.net email is sponsored by:ThinkGeek
> > Welcome to geek heaven.
> > http://thinkgeek.com/sf
> > _______________________________________________
> > Dev-cpp-users mailing list
> > Dev...@li...
> > TO UNSUBSCRIBE:
>http://www23.brinkster.com/noicys/devcpp/ub.htm
> >
>https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
>
>
>__________________________________
>Do you Yahoo!?
>The New Yahoo! Shopping - with improved product search
>http://shopping.yahoo.com
>
>
>-------------------------------------------------------
>This sf.net email is sponsored by:ThinkGeek
>Welcome to geek heaven.
>http://thinkgeek.com/sf
>_______________________________________________
>Dev-cpp-users mailing list
>Dev...@li...
>TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm
>https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
_________________________________________________________________
Find a cheaper internet access deal - choose one to suit you.
http://www.msn.co.uk/internetaccess
|
|
From: Matthews <dem...@uw...> - 2003-10-08 11:42:38
|
Yes. *If* the VC++ asm blocks were allowed, the syntax would be like this:
asm {
movd ptr [BigInt], eax
add dword ptr [SmallInt], eax
movd eax, ptr [ResultInt]
}
BUT, since gcc doesn't allow blocks like that, you must use a strange
__asm() construct which I still don't understand and can't explain.
At 09:09 AM 07/10/2003 +0100, Daniel Glenfield wrote:
>Is it very different to what is used by visual C++ / visual studio .NET ?
>
>For example is VC++ I could do
>
>// Add the sum of some integers declared earlier
>__asm
>{
> // eax is the target, move BigInt onto eax.
> mov eax, dword ptr[BigInt]
> // eax is the target (with BigInt on it), add SmallInt to the target
> add eax, dword ptr[SmallInt]
>
> // Move eax onto the new target, the variable that is the result
> mov dword ptr[ResultInt], eax
>}
>
>std::cout<< ResultInt << std::endl;
>
>
>Would this simple piece of code be radically different?
>
>Daniel
>
>
>>From: David McKen <ci...@ya...>
>>Reply-To: ci...@ya...
>>To: Ursin "Sol=E8r" <urs...@pm...>, =20
>>dev...@li...
>>Subject: Re: [Dev-C++] InLineAssembler in Dev-C++
>>Date: Mon, 6 Oct 2003 15:11:57 -0700 (PDT)
>>
>>Yes it does. However it is mingw that supports inline
>>assembler not Dev-C++.
>>The thing is that mingw supports the AT&T syntax (search
>>google you will
>>find loads of examples) not the standard i*86 syntax. You
>>can probably check
>>the documentation at www.mingw.org or just search in
>>google.
>>
>>Happy Coding
>>David McKen
>>
>>
>>----- Original Message -----
>>From: "Ursin Sol=E8r" <urs...@pm...>
>>To: <dev...@li...>
>>Sent: Monday, October 06, 2003 5:06 AM
>>Subject: [Dev-C++] InLineAssembler in Dev-C++
>>
>>
>> > Hi folks
>> >
>> > Does Dev-C++ fully support inlineassembling?
>> > Does anyone of you have a working example?
>> >
>> > Thanks, very much!! ;)
>> > --
>> > Ursin Sol=E8r
>> > Physiklaborant
>> >
>> > Observatorium Davos (PMOD/WRC)
>> > Dorfstrasse 33
>> > CH-7260 Davos Dorf
>> >
>> > Tel.: +41 81-417 5144
>> > Fax.: +41 81-417 5100
>> >
>> > http://www.pmodwrc.ch/
>> >
>> >
>>***********************************************************************
>> > Zwei Planeten treffen sich im All. "Wie geht's?", fragt
>>der eine.
>> > "Schlecht", sagt der andere. "Einfach miserabel, ich habe
>>Menschen."
>> > "Mach dir nichts draus", sagt der eine, "das vergeht."
>> >
>>***********************************************************************
>> >
>> >
>> >
>> > -------------------------------------------------------
>> > This sf.net email is sponsored by:ThinkGeek
>> > Welcome to geek heaven.
>> > http://thinkgeek.com/sf
>> > _______________________________________________
>> > Dev-cpp-users mailing list
>> > Dev...@li...
>> > TO UNSUBSCRIBE:
>>http://www23.brinkster.com/noicys/devcpp/ub.htm
>> >
>>https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
>>
>>
>>__________________________________
>>Do you Yahoo!?
>>The New Yahoo! Shopping - with improved product search
>>http://shopping.yahoo.com
>>
>>
>>-------------------------------------------------------
>>This sf.net email is sponsored by:ThinkGeek
>>Welcome to geek heaven.
>>http://thinkgeek.com/sf
>>_______________________________________________
>>Dev-cpp-users mailing list
>>Dev...@li...
>>TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm
>>https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
>
>_________________________________________________________________
>Find a cheaper internet access deal - choose one to suit you.=20
>http://www.msn.co.uk/internetaccess
>
>
>
>-------------------------------------------------------
>This sf.net email is sponsored by:ThinkGeek
>Welcome to geek heaven.
>http://thinkgeek.com/sf
>_______________________________________________
>Dev-cpp-users mailing list
>Dev...@li...
>TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm
>https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
>
|
|
From: Daniel G. <sp...@ho...> - 2003-10-08 14:53:10
|
Thanks.
I visited the website that was posted and I saw that it was quite different,
the most notable bit to me was the different position of the target.
Thanks,
Daniel
>From: Matthews <dem...@uw...>
>To: dev...@li...
>Subject: Re: [Dev-C++] InLineAssembler in Dev-C++
>Date: Tue, 07 Oct 2003 16:15:39 -0400
>
>Yes. *If* the VC++ asm blocks were allowed, the syntax would be like this:
>
>asm {
> movd ptr [BigInt], eax
> add dword ptr [SmallInt], eax
> movd eax, ptr [ResultInt]
>}
>
>BUT, since gcc doesn't allow blocks like that, you must use a strange
>__asm() construct which I still don't understand and can't explain.
>
>At 09:09 AM 07/10/2003 +0100, Daniel Glenfield wrote:
> >Is it very different to what is used by visual C++ / visual studio .NET ?
> >
> >For example is VC++ I could do
> >
> >// Add the sum of some integers declared earlier
> >__asm
> >{
> > // eax is the target, move BigInt onto eax.
> > mov eax, dword ptr[BigInt]
> > // eax is the target (with BigInt on it), add SmallInt to the target
> > add eax, dword ptr[SmallInt]
> >
> > // Move eax onto the new target, the variable that is the result
> > mov dword ptr[ResultInt], eax
> >}
> >
> >std::cout<< ResultInt << std::endl;
> >
> >
> >Would this simple piece of code be radically different?
> >
> >Daniel
> >
> >
> >>From: David McKen <ci...@ya...>
> >>Reply-To: ci...@ya...
> >>To: Ursin "Solèr" <urs...@pm...>,
> >>dev...@li...
> >>Subject: Re: [Dev-C++] InLineAssembler in Dev-C++
> >>Date: Mon, 6 Oct 2003 15:11:57 -0700 (PDT)
> >>
> >>Yes it does. However it is mingw that supports inline
> >>assembler not Dev-C++.
> >>The thing is that mingw supports the AT&T syntax (search
> >>google you will
> >>find loads of examples) not the standard i*86 syntax. You
> >>can probably check
> >>the documentation at www.mingw.org or just search in
> >>google.
> >>
> >>Happy Coding
> >>David McKen
> >>
> >>
> >>----- Original Message -----
> >>From: "Ursin Solèr" <urs...@pm...>
> >>To: <dev...@li...>
> >>Sent: Monday, October 06, 2003 5:06 AM
> >>Subject: [Dev-C++] InLineAssembler in Dev-C++
> >>
> >>
> >> > Hi folks
> >> >
> >> > Does Dev-C++ fully support inlineassembling?
> >> > Does anyone of you have a working example?
> >> >
> >> > Thanks, very much!! ;)
> >> > --
> >> > Ursin Solèr
> >> > Physiklaborant
> >> >
> >> > Observatorium Davos (PMOD/WRC)
> >> > Dorfstrasse 33
> >> > CH-7260 Davos Dorf
> >> >
> >> > Tel.: +41 81-417 5144
> >> > Fax.: +41 81-417 5100
> >> >
> >> > http://www.pmodwrc.ch/
> >> >
> >> >
> >>***********************************************************************
> >> > Zwei Planeten treffen sich im All. "Wie geht's?", fragt
> >>der eine.
> >> > "Schlecht", sagt der andere. "Einfach miserabel, ich habe
> >>Menschen."
> >> > "Mach dir nichts draus", sagt der eine, "das vergeht."
> >> >
> >>***********************************************************************
> >> >
> >> >
> >> >
> >> > -------------------------------------------------------
> >> > This sf.net email is sponsored by:ThinkGeek
> >> > Welcome to geek heaven.
> >> > http://thinkgeek.com/sf
> >> > _______________________________________________
> >> > Dev-cpp-users mailing list
> >> > Dev...@li...
> >> > TO UNSUBSCRIBE:
> >>http://www23.brinkster.com/noicys/devcpp/ub.htm
> >> >
> >>https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
> >>
> >>
> >>__________________________________
> >>Do you Yahoo!?
> >>The New Yahoo! Shopping - with improved product search
> >>http://shopping.yahoo.com
> >>
> >>
> >>-------------------------------------------------------
> >>This sf.net email is sponsored by:ThinkGeek
> >>Welcome to geek heaven.
> >>http://thinkgeek.com/sf
> >>_______________________________________________
> >>Dev-cpp-users mailing list
> >>Dev...@li...
> >>TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm
> >>https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
> >
> >_________________________________________________________________
> >Find a cheaper internet access deal - choose one to suit you.
> >http://www.msn.co.uk/internetaccess
> >
> >
> >
> >-------------------------------------------------------
> >This sf.net email is sponsored by:ThinkGeek
> >Welcome to geek heaven.
> >http://thinkgeek.com/sf
> >_______________________________________________
> >Dev-cpp-users mailing list
> >Dev...@li...
> >TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm
> >https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
> >
>
>
>-------------------------------------------------------
>This sf.net email is sponsored by:ThinkGeek
>Welcome to geek heaven.
>http://thinkgeek.com/sf
>_______________________________________________
>Dev-cpp-users mailing list
>Dev...@li...
>TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm
>https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
_________________________________________________________________
Sign-up for a FREE BT Broadband connection today!
http://www.msn.co.uk/specials/btbroadband
|