 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Florent Ouchet Guest
|
Posted: Mon Sep 22, 2003 10:30 pm Post subject: Delphi compiler |
|
|
Hi all,
I want to add new fonctions to the borland delphi compiler, for example :
bit déclaration, 3D Now....
Any help is required!!
Is there a way to do this in Delphi 6 pro ??
Thanks,
Florent
|
|
| Back to top |
|
 |
Mike Williams (TeamB) Guest
|
Posted: Mon Sep 22, 2003 10:40 pm Post subject: Re: Delphi compiler |
|
|
On 22 Sep 2003, "Florent Ouchet" <ouchet.florent (AT) laposte (DOT) net> wrote:
| Quote: | I want to add new fonctions to the borland delphi compiler, for
example : bit d‚claration, 3D Now....
Any help is required!!
Is there a way to do this in Delphi 6 pro ??
|
You can't actually modify the compiler but you can certainly create your
own components/classes/units that extend the compiler. All of the VCL
is done this way: it's something that is external to the compiler itself
but linked in to almost every Delphi program.
Since the things you mention are all low level you'd probably end up
writing the code in ASM and providing object pascal wrappers.
--
-Mike (TeamB)
|
|
| Back to top |
|
 |
Florent Ouchet Guest
|
Posted: Mon Sep 22, 2003 10:41 pm Post subject: Re: Delphi compiler |
|
|
Thanks,
but i wannot write an object, i dont need instance, i just need to get the
nth bit of an ordinal value.
I know that asm can do that (i have already experiment this).
I would be simpliest to make it possible in pure pascal.
Florent.
"Mike Williams (TeamB)" <mikew (AT) remove (DOT) aps-soft.com> a écrit dans le message
de news: Xns93FEBDE725E92mikewteamb (AT) 207 (DOT) 105.83.65...
| Quote: | On 22 Sep 2003, "Florent Ouchet" <ouchet.florent (AT) laposte (DOT) net> wrote:
I want to add new fonctions to the borland delphi compiler, for
example : bit d,claration, 3D Now....
Any help is required!!
Is there a way to do this in Delphi 6 pro ??
You can't actually modify the compiler but you can certainly create your
own components/classes/units that extend the compiler. All of the VCL
is done this way: it's something that is external to the compiler itself
but linked in to almost every Delphi program.
Since the things you mention are all low level you'd probably end up
writing the code in ASM and providing object pascal wrappers.
--
-Mike (TeamB)
|
|
|
| Back to top |
|
 |
Maynard Philbrook Guest
|
Posted: Tue Sep 23, 2003 5:47 am Post subject: Re: Delphi compiler |
|
|
You can.
simple write function that uses inline assembler..
just move the results into AL, AX or EAX at the end.
or move it to the @Result variable at the end of the function
Florent Ouchet wrote:
| Quote: | Thanks,
but i wannot write an object, i dont need instance, i just need to get the
nth bit of an ordinal value.
I know that asm can do that (i have already experiment this).
I would be simpliest to make it possible in pure pascal.
Florent.
"Mike Williams (TeamB)" <mikew (AT) remove (DOT) aps-soft.com> a écrit dans le message
de news: Xns93FEBDE725E92mikewteamb (AT) 207 (DOT) 105.83.65...
On 22 Sep 2003, "Florent Ouchet" <ouchet.florent (AT) laposte (DOT) net> wrote:
I want to add new fonctions to the borland delphi compiler, for
example : bit d,claration, 3D Now....
Any help is required!!
Is there a way to do this in Delphi 6 pro ??
You can't actually modify the compiler but you can certainly create your
own components/classes/units that extend the compiler. All of the VCL
is done this way: it's something that is external to the compiler itself
but linked in to almost every Delphi program.
Since the things you mention are all low level you'd probably end up
writing the code in ASM and providing object pascal wrappers.
--
-Mike (TeamB)
|
--
To See what real programmers do in their spare time visit
http://jamie12.home.mindspring.com
home of PC bit software ..
Please send comments about my work .
|
|
| Back to top |
|
 |
John Leavey Guest
|
Posted: Tue Sep 23, 2003 8:43 am Post subject: Re: Re: Delphi compiler |
|
|
On Tue, 23 Sep 2003 00:41:20 +0200, "Florent Ouchet" <ouchet.florent (AT) laposte (DOT) net> wrote:
| Quote: | Thanks,
but i wannot write an object, i dont need instance, i just need to get the
nth bit of an ordinal value.
I know that asm can do that (i have already experiment this).
I would be simpliest to make it possible in pure pascal.
|
Take a look at jclLogic.pas ( part of the JEDI code library -
http://sourceforge.net/projects/jcl/ ) which has a whole set of bit manipulation functions
John Leavey
|
|
| Back to top |
|
 |
Florent Ouchet Guest
|
Posted: Sun Sep 28, 2003 8:05 pm Post subject: Re: Re: Delphi compiler |
|
|
Tx a lot for this response,
I have a lot of problem connecting the newsgroup server...
"John Leavey" <johnl (AT) NO_SPAM (DOT) compufile.co.uk> a écrit dans le message de
news:clvvmvc2mobatkemt783j6m0jfmue18iea (AT) 4ax (DOT) com...
| Quote: | On Tue, 23 Sep 2003 00:41:20 +0200, "Florent Ouchet"
[email]ouchet.florent (AT) laposte (DOT) net[/email]> wrote:
Thanks,
but i wannot write an object, i dont need instance, i just need to get
the
nth bit of an ordinal value.
I know that asm can do that (i have already experiment this).
I would be simpliest to make it possible in pure pascal.
Take a look at jclLogic.pas ( part of the JEDI code library -
http://sourceforge.net/projects/jcl/ ) which has a whole set of bit
manipulation functions
John Leavey
|
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|