NAME

B::Stackobj - Helper module for CC backend

SYNOPSIS

use B::Stackobj;

DESCRIPTION

A simple representation of pp stacks and lexical pads for the B::CC compiler.

For lexical pads (i.e. my variables) we even assume the type of variables according a magic naming scheme.

my $<name>_i;  IV integer
my $<name>_ir; IV integer in a pseudo register
my $<name>_d;  NV double

Future ideas are type qualifiers such as

my (int $foo, double $foo_d);

or attributes such as:

my ($foo:Cint, $foo:Cintr, $foo:Cdouble);

See B::CC.

Note: To represent on this stack not only PADs,SV,IV,PV,NV,BOOL,Special and a SV const, but also GV,CV,RV,AV,HV use B::Stackobj::Const.

AUTHOR

Malcolm Beattie, mbeattie@sable.ox.ac.uk