2005-01-31 07:16:54 +03:00
|
|
|
sub start_file
|
|
|
|
{
|
|
|
|
return "";
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
sub start_func($)
|
|
|
|
{
|
|
|
|
my $func_name = shift;
|
|
|
|
my $ret = "";
|
|
|
|
|
|
|
|
$ret = "\t$GLOBAL $GSYM$func_name\n";
|
|
|
|
if (! $TYPE eq "") {
|
2005-06-24 20:16:17 +04:00
|
|
|
$ret .= "\t.type $GSYM$func_name, $TYPE" . "function\n";
|
2005-01-31 07:16:54 +03:00
|
|
|
}
|
|
|
|
$ret .= "$GSYM$func_name$SUFFIX\n";
|
|
|
|
|
|
|
|
return $ret;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
sub end_func($)
|
|
|
|
{
|
|
|
|
my $func_name = shift;
|
|
|
|
my $ret = "";
|
|
|
|
|
|
|
|
if ($SIZE != 0) {
|
2005-06-24 20:16:17 +04:00
|
|
|
$ret = "\t.size $GSYM$func_name, .-$GSYM$func_name\n";
|
2005-01-31 07:16:54 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
return $ret;
|
|
|
|
}
|
|
|
|
|
|
|
|
1
|