[Nicolas Cellier] Montgomery modulo algorithm plugin code

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

[Nicolas Cellier] Montgomery modulo algorithm plugin code

Rob Withers-2
Nicolas,

I finally got a vm built using Cog.  I added your code and it had problems.
I recast the vars as pragmas, but there is still a problem (remapping oops?)

../../../src/plugins/LargeIntegers/LargeIntegers.c: In function
`primMontgomeryT
imesModulo':
../../../src/plugins/LargeIntegers/LargeIntegers.c:3007: error:
`secondInteger'
undeclared (first use in this function)
../../../src/plugins/LargeIntegers/LargeIntegers.c:3007: error: (Each
undeclared
 identifier is reported only once
../../../src/plugins/LargeIntegers/LargeIntegers.c:3007: error: for each
functio
n it appears in.)
../../../src/plugins/LargeIntegers/LargeIntegers.c:3008: error:
`thirdInteger' u
ndeclared (first use in this function)
make[1]: *** [LargeIntegers.o] Error 1

Rob


Reply | Threaded
Open this post in threaded view
|

Re: [Nicolas Cellier] Montgomery modulo algorithm plugin code

Nicolas Cellier
Oh, yes sorry, there is a problem in VMMaker inlining I think.
You must rename some method arguments with same name as temps used in sender...
I'll try and commit an update in mantis entries.

Nicolas

2010/9/5 Rob Withers <[hidden email]>:

> Nicolas,
>
> I finally got a vm built using Cog.  I added your code and it had problems.
> I recast the vars as pragmas, but there is still a problem (remapping oops?)
>
> ../../../src/plugins/LargeIntegers/LargeIntegers.c: In function
> `primMontgomeryT
> imesModulo':
> ../../../src/plugins/LargeIntegers/LargeIntegers.c:3007: error:
> `secondInteger'
> undeclared (first use in this function)
> ../../../src/plugins/LargeIntegers/LargeIntegers.c:3007: error: (Each
> undeclared
> identifier is reported only once
> ../../../src/plugins/LargeIntegers/LargeIntegers.c:3007: error: for each
> functio
> n it appears in.)
> ../../../src/plugins/LargeIntegers/LargeIntegers.c:3008: error:
> `thirdInteger' u
> ndeclared (first use in this function)
> make[1]: *** [LargeIntegers.o] Error 1
>
> Rob
>
>

Reply | Threaded
Open this post in threaded view
|

Re: [Nicolas Cellier] Montgomery modulo algorithm plugin code

Eliot Miranda-2
Hi Both,

    can you send me the modified LargeIntegers plugin (the source for the one that breaks VMMaker as outlined below, not the fixed one) so I can have a look at it in the context of the Cog VMMaker?

TIA

On Sun, Sep 5, 2010 at 3:37 AM, Nicolas Cellier <[hidden email]> wrote:
Oh, yes sorry, there is a problem in VMMaker inlining I think.
You must rename some method arguments with same name as temps used in sender...
I'll try and commit an update in mantis entries.

Nicolas

2010/9/5 Rob Withers <[hidden email]>:
> Nicolas,
>
> I finally got a vm built using Cog.  I added your code and it had problems.
> I recast the vars as pragmas, but there is still a problem (remapping oops?)
>
> ../../../src/plugins/LargeIntegers/LargeIntegers.c: In function
> `primMontgomeryT
> imesModulo':
> ../../../src/plugins/LargeIntegers/LargeIntegers.c:3007: error:
> `secondInteger'
> undeclared (first use in this function)
> ../../../src/plugins/LargeIntegers/LargeIntegers.c:3007: error: (Each
> undeclared
> identifier is reported only once
> ../../../src/plugins/LargeIntegers/LargeIntegers.c:3007: error: for each
> functio
> n it appears in.)
> ../../../src/plugins/LargeIntegers/LargeIntegers.c:3008: error:
> `thirdInteger' u
> ndeclared (first use in this function)
> make[1]: *** [LargeIntegers.o] Error 1
>
> Rob
>
>




Reply | Threaded
Open this post in threaded view
|

Re: [Nicolas Cellier] Montgomery modulo algorithm plugincode

Rob Withers-2
Here you are, Eliot.
 
Cheers,
Rob

Sent: Sunday, September 05, 2010 2:15 PM
Subject: Re: [squeak-dev] [Nicolas Cellier] Montgomery modulo algorithm plugincode

Hi Both,

    can you send me the modified LargeIntegers plugin (the source for the one that breaks VMMaker as outlined below, not the fixed one) so I can have a look at it in the context of the Cog VMMaker?

TIA

On Sun, Sep 5, 2010 at 3:37 AM, Nicolas Cellier <[hidden email]> wrote:
Oh, yes sorry, there is a problem in VMMaker inlining I think.
You must rename some method arguments with same name as temps used in sender...
I'll try and commit an update in mantis entries.

Nicolas

2010/9/5 Rob Withers <[hidden email]>:

> Nicolas,
>
> I finally got a vm built using Cog.  I added your code and it had problems.
> I recast the vars as pragmas, but there is still a problem (remapping oops?)
>
> ../../../src/plugins/LargeIntegers/LargeIntegers.c: In function
> `primMontgomeryT
> imesModulo':
> ../../../src/plugins/LargeIntegers/LargeIntegers.c:3007: error:
> `secondInteger'
> undeclared (first use in this function)
> ../../../src/plugins/LargeIntegers/LargeIntegers.c:3007: error: (Each
> undeclared
> identifier is reported only once
> ../../../src/plugins/LargeIntegers/LargeIntegers.c:3007: error: for each
> functio
> n it appears in.)
> ../../../src/plugins/LargeIntegers/LargeIntegers.c:3008: error:
> `thirdInteger' u
> ndeclared (first use in this function)
> make[1]: *** [LargeIntegers.o] Error 1
>
> Rob
>
>







LargeIntegers.c (94K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

[Nicolas Cellier] Montgomery modulo algorithm plugincode

Nicolas Cellier
Oops "Répondre à tous"

---------- Forwarded message ----------
From: Nicolas Cellier <[hidden email]>
Date: 2010/9/5
Subject: Re: [squeak-dev] [Nicolas Cellier] Montgomery modulo
algorithm plugincode
To: Rob Withers <[hidden email]>


And here is the Smalltalk too

Nicolas

2010/9/5 Rob Withers <[hidden email]>:

> Here you are, Eliot.
>
> Cheers,
> Rob
> From: Eliot Miranda
> Sent: Sunday, September 05, 2010 2:15 PM
> To: Nicolas Cellier ; Rob Withers
> Cc: The general-purpose Squeak developers list
> Subject: Re: [squeak-dev] [Nicolas Cellier] Montgomery modulo algorithm
> plugincode
> Hi Both,
>     can you send me the modified LargeIntegers plugin (the source for the
> one that breaks VMMaker as outlined below, not the fixed one) so I can have
> a look at it in the context of the Cog VMMaker?
> TIA
>
> On Sun, Sep 5, 2010 at 3:37 AM, Nicolas Cellier
> <[hidden email]> wrote:
>>
>> Oh, yes sorry, there is a problem in VMMaker inlining I think.
>> You must rename some method arguments with same name as temps used in
>> sender...
>> I'll try and commit an update in mantis entries.
>>
>> Nicolas
>>
>> 2010/9/5 Rob Withers <[hidden email]>:
>> > Nicolas,
>> >
>> > I finally got a vm built using Cog.  I added your code and it had
>> > problems.
>> > I recast the vars as pragmas, but there is still a problem (remapping
>> > oops?)
>> >
>> > ../../../src/plugins/LargeIntegers/LargeIntegers.c: In function
>> > `primMontgomeryT
>> > imesModulo':
>> > ../../../src/plugins/LargeIntegers/LargeIntegers.c:3007: error:
>> > `secondInteger'
>> > undeclared (first use in this function)
>> > ../../../src/plugins/LargeIntegers/LargeIntegers.c:3007: error: (Each
>> > undeclared
>> > identifier is reported only once
>> > ../../../src/plugins/LargeIntegers/LargeIntegers.c:3007: error: for each
>> > functio
>> > n it appears in.)
>> > ../../../src/plugins/LargeIntegers/LargeIntegers.c:3008: error:
>> > `thirdInteger' u
>> > ndeclared (first use in this function)
>> > make[1]: *** [LargeIntegers.o] Error 1
>> >
>> > Rob
>> >
>> >
>>
>
> ________________________________
>



Integer-raisedTo-modulo-BadCOGplugin-M7120-nice.3.cs (6K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

[Nicolas Cellier] Montgomery modulo algorithm plugincode

Nicolas Cellier
Oops "Repondre à tous"


---------- Forwarded message ----------
From: Nicolas Cellier <[hidden email]>
Date: 2010/9/5
Subject: [squeak-dev] [Nicolas Cellier] Montgomery modulo algorithm plugincode
To: The general-purpose Squeak developers list
<[hidden email]>


Oops "Répondre à tous"

---------- Forwarded message ----------
From: Nicolas Cellier <[hidden email]>
Date: 2010/9/5
Subject: Re: [squeak-dev] [Nicolas Cellier] Montgomery modulo
algorithm plugincode
To: Rob Withers <[hidden email]>


And here is the Smalltalk too

Nicolas

2010/9/5 Rob Withers <[hidden email]>:

> Here you are, Eliot.
>
> Cheers,
> Rob
> From: Eliot Miranda
> Sent: Sunday, September 05, 2010 2:15 PM
> To: Nicolas Cellier ; Rob Withers
> Cc: The general-purpose Squeak developers list
> Subject: Re: [squeak-dev] [Nicolas Cellier] Montgomery modulo algorithm
> plugincode
> Hi Both,
>     can you send me the modified LargeIntegers plugin (the source for the
> one that breaks VMMaker as outlined below, not the fixed one) so I can have
> a look at it in the context of the Cog VMMaker?
> TIA
>
> On Sun, Sep 5, 2010 at 3:37 AM, Nicolas Cellier
> <[hidden email]> wrote:
>>
>> Oh, yes sorry, there is a problem in VMMaker inlining I think.
>> You must rename some method arguments with same name as temps used in
>> sender...
>> I'll try and commit an update in mantis entries.
>>
>> Nicolas
>>
>> 2010/9/5 Rob Withers <[hidden email]>:
>> > Nicolas,
>> >
>> > I finally got a vm built using Cog.  I added your code and it had
>> > problems.
>> > I recast the vars as pragmas, but there is still a problem (remapping
>> > oops?)
>> >
>> > ../../../src/plugins/LargeIntegers/LargeIntegers.c: In function
>> > `primMontgomeryT
>> > imesModulo':
>> > ../../../src/plugins/LargeIntegers/LargeIntegers.c:3007: error:
>> > `secondInteger'
>> > undeclared (first use in this function)
>> > ../../../src/plugins/LargeIntegers/LargeIntegers.c:3007: error: (Each
>> > undeclared
>> > identifier is reported only once
>> > ../../../src/plugins/LargeIntegers/LargeIntegers.c:3007: error: for each
>> > functio
>> > n it appears in.)
>> > ../../../src/plugins/LargeIntegers/LargeIntegers.c:3008: error:
>> > `thirdInteger' u
>> > ndeclared (first use in this function)
>> > make[1]: *** [LargeIntegers.o] Error 1
>> >
>> > Rob
>> >
>> >
>>
>
> ________________________________
>



Integer-raisedTo-modulo-BadCOGplugin-M7120-nice.3.cs (6K) Download Attachment