You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bcel-user@jakarta.apache.org by pm...@wit-software.com on 2003/02/07 16:45:54 UTC

BCEL J2ME jdk 1.1 compliant code generation

Hi,

Is it possible to generate code ready to be preverified and to be able to run on
MIDP?

thanks in advance...
Pedro Pereira

---------------------------------------------------------------------
To unsubscribe, e-mail: bcel-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: bcel-user-help@jakarta.apache.org


RE: BCEL J2ME jdk 1.1 compliant code generation

Posted by Jose Andrés Pérez <jo...@m-centric.com>.
> I did not found any example or documentation on including the
> StackMap attribute .
> Could you point me to some docs?

You should follow the Preverifier specification on the CLDC or KVM
Specification (I don´t remember exactly). One of these documents explains to
you how the preverifier works or what it should do.

The BCEL last version includes a class that represents the StackMap
attribute.


Jose




>
> again, thanks a lot...
> Pedro Pereira
>
> Quoting Jose Andrés Pérez <jo...@m-centric.com>:
>
> > Every code you modify using BCEL could be run on any VM (JVM or
> KVM), but
> > you should take into account that if the code will be run on
> KVM you should
> > include the StackMap attribute (it is an attribute added to the
> class files
> > by the preverifier. This is only for CLDC applications) on the code (see
> > the
> > KVM or CLDC Specifications).
> >
> > Jose
> >
> >
> > > -----Original Message-----
> > > From:
> > > bcel-user-return-261-joseandres.perez=m-centric.com@jakarta.apache.org
> > >
[mailto:bcel-user-return-261-joseandres.perez=m-centric.com@jakarta.apac
> > he.org]On Behalf Of pmpereira@wit-software.com
> > Sent: viernes, 07 de febrero de 2003 16:46
> > To: bcel-user@jakarta.apache.org
> > Subject: BCEL J2ME jdk 1.1 compliant code generation
> >
> >
> >
> > Hi,
> >
> > Is it possible to generate code ready to be preverified and to be
> > able to run on
> > MIDP?
> >
> > thanks in advance...
> > Pedro Pereira
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: bcel-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: bcel-user-help@jakarta.apache.org
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: bcel-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: bcel-user-help@jakarta.apache.org
>




---------------------------------------------------------------------
To unsubscribe, e-mail: bcel-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: bcel-user-help@jakarta.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: bcel-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: bcel-user-help@jakarta.apache.org


RE: BCEL J2ME jdk 1.1 compliant code generation

Posted by pm...@wit-software.com.
Hi,

thanks a lot for your answer.

I did not found any example or documentation on including the StackMap attribute . 
Could you point me to some docs?

again, thanks a lot...
Pedro Pereira

Quoting Jose Andrés Pérez <jo...@m-centric.com>:

> Every code you modify using BCEL could be run on any VM (JVM or KVM), but
> you should take into account that if the code will be run on KVM you should
> include the StackMap attribute (it is an attribute added to the class files
> by the preverifier. This is only for CLDC applications) on the code (see
> the
> KVM or CLDC Specifications).
> 
> Jose
> 
> 
> > -----Original Message-----
> > From:
> > bcel-user-return-261-joseandres.perez=m-centric.com@jakarta.apache.org
> > [mailto:bcel-user-return-261-joseandres.perez=m-centric.com@jakarta.apac
> > he.org]On Behalf Of pmpereira@wit-software.com
> > Sent: viernes, 07 de febrero de 2003 16:46
> > To: bcel-user@jakarta.apache.org
> > Subject: BCEL J2ME jdk 1.1 compliant code generation
> >
> >
> >
> > Hi,
> >
> > Is it possible to generate code ready to be preverified and to be
> > able to run on
> > MIDP?
> >
> > thanks in advance...
> > Pedro Pereira
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: bcel-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: bcel-user-help@jakarta.apache.org
> >
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: bcel-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: bcel-user-help@jakarta.apache.org
> 




---------------------------------------------------------------------
To unsubscribe, e-mail: bcel-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: bcel-user-help@jakarta.apache.org


RE: BCEL J2ME jdk 1.1 compliant code generation

Posted by Jose Andrés Pérez <jo...@m-centric.com>.
Every code you modify using BCEL could be run on any VM (JVM or KVM), but
you should take into account that if the code will be run on KVM you should
include the StackMap attribute (it is an attribute added to the class files
by the preverifier. This is only for CLDC applications) on the code (see the
KVM or CLDC Specifications).

Jose


> -----Original Message-----
> From:
> bcel-user-return-261-joseandres.perez=m-centric.com@jakarta.apache.org
> [mailto:bcel-user-return-261-joseandres.perez=m-centric.com@jakarta.apac
> he.org]On Behalf Of pmpereira@wit-software.com
> Sent: viernes, 07 de febrero de 2003 16:46
> To: bcel-user@jakarta.apache.org
> Subject: BCEL J2ME jdk 1.1 compliant code generation
>
>
>
> Hi,
>
> Is it possible to generate code ready to be preverified and to be
> able to run on
> MIDP?
>
> thanks in advance...
> Pedro Pereira
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: bcel-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: bcel-user-help@jakarta.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: bcel-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: bcel-user-help@jakarta.apache.org