Alien-TinyCCx
view release on metacpan or search on metacpan
src/tccgen.c view on Meta::CPAN
The main reason to removing this code:
#include <stdio.h>
int main ()
{
int v[10];
int i = 10;
int j = 9;
fprintf(stderr, "v+i-j = %p\n", v+i-j);
fprintf(stderr, "v+(i-j) = %p\n", v+(i-j));
}
When this code is on. then the output looks like
v+i-j = 0xfffffffe
v+(i-j) = 0xbff84000
*/
/* if evaluating constant expression, no code should be
generated, so no bound check */
if (tcc_state->do_bounds_check && !const_wanted) {
/* if bounded pointers, we generate a special code to
test bounds */
if (op == '-') {
vpushi(0);
src/tests/pp/13.S view on Meta::CPAN
# `modelist' label. Each video mode record looks like:
#ifdef AAA
# modelist' label. Each video mode record looks like:
#endif
.text
endtext:
src/tests/pp/13.expect view on Meta::CPAN
# `modelist' label. Each video mode record looks like:
.text
endtext:
t/40-tcc-exsymtab-test-suite.t view on Meta::CPAN
# Run all of this from the test directory (except on Windows)
chdir 'src';
chdir 'tests';
chdir 'exsymtab';
my @files = grep /^\d\d/, glob '*.c';
My::Build::apply_patches('Makefile' =>
qr{lib_path=} => sub { 1 } # skip line
);
# Windows looks for the dll in the path. Add that location
use Cwd qw(cwd abs_path);
my $dll = abs_path('../../win32/libtcc.dll') if $^O =~ /Win/;
$ENV{PATH} = cwd() . '\\..\\..\\win32;' . $ENV{PATH}
if $^O =~ /Win/;
my $test_counter = 0;
sub test_compile {
my ($test_file, $sys_cmd) = @_;
my @compile_message = `$sys_cmd`;
( run in 0.448 second using v1.01-cache-2.11-cpan-64827b87656 )