Alien-TinyCCx
view release on metacpan or search on metacpan
inc/My/Build/Linux.pm view on Meta::CPAN
chdir 'src';
system($make, 'clean');
chdir '..';
}
use File::Path;
sub ACTION_install {
my $self = shift;
# For unixish systems, we must re-build with the new prefix so that all of
# the baked-in paths are correct. I just wanna say this:
#my $prefix = File::ShareDir::dist_dir('Alien-TinyCCx');
# Unfortunately, this won't work because File::ShareDir expects the
# folder to already exist.
# Instead, I copy code from Alien::Base::ModuleBuild to calculate the
# sharedir location by-hand:
my $prefix = File::Spec->catdir($self->install_destination('lib'),
qw(auto share dist Alien-TinyCCx));
# Completely rebuild (and install) the compiler with the new prefix
lib/Alien/TinyCCx.pm view on Meta::CPAN
Alien::TinyCCx - retrieve useful information about the Alien installation of tcc with
extended symbol tables
=head1 ALIEN SYNOPSIS
use Alien::TinyCCx;
## libtcc location functions ##
say 'The libtcc headers can be found in ',
Alien::TinyCCx->libtcc_include_path;
say 'The libtcc library can be found in ',
Alien::TinyCCx->libtcc_library_path;
## tcc functions ##
say 'The tcc executable can be found in ',
Alien::TinyCCx->path_to_tcc;
# Create a C file
open my $out_fh, '>', 'test.c';
print $out_fh <<'EOF';
#include <stdio.h>
int main() {
printf("Good to go");
return 1;
src/stab.def view on Meta::CPAN
__define_stab (N_OBJ, 0x38, "OBJ")
/* New stab from Solaris. I don't know what it means, but it
don't seem to contain useful information. Possibly related to the
optimization flags used in this module. */
__define_stab (N_OPT, 0x3c, "OPT")
/* Register variable. Value is number of register. */
__define_stab (N_RSYM, 0x40, "RSYM")
/* Modula-2 compilation unit. Can someone say what info it contains? */
__define_stab (N_M2C, 0x42, "M2C")
/* Line number in text segment. Desc is the line number;
value is corresponding address. */
__define_stab (N_SLINE, 0x44, "SLINE")
/* Similar, for data segment. */
__define_stab (N_DSLINE, 0x46, "DSLINE")
/* Similar, for bss segment. */
src/stab.def view on Meta::CPAN
The value is the address of the start of the text for the block.
The variables declared inside the block *precede* the N_LBRAC symbol. */
__define_stab (N_LBRAC, 0xc0, "LBRAC")
/* Place holder for deleted include file. Replaces a N_BINCL and everything
up to the corresponding N_EINCL. The Sun linker generates these when
it finds multiple identical copies of the symbols from an include file.
This appears only in output from the Sun linker. */
__define_stab (N_EXCL, 0xc2, "EXCL")
/* Modula-2 scope information. Can someone say what info it contains? */
__define_stab (N_SCOPE, 0xc4, "SCOPE")
/* End of a lexical block. Desc matches the N_LBRAC's desc.
The value is the address of the end of the text for the block. */
__define_stab (N_RBRAC, 0xe0, "RBRAC")
/* Begin named common block. Only the name is significant. */
__define_stab (N_BCOMM, 0xe2, "BCOMM")
/* End named common block. Only the name is significant
( run in 2.279 seconds using v1.01-cache-2.11-cpan-483215c6ad5 )