2014-09-12 22:14:23 +00:00
|
|
|
extern char bar[];
|
2022-10-27 18:43:13 +00:00
|
|
|
extern char size_of_bar asm ("bar@SIZE");
|
2014-09-12 22:14:23 +00:00
|
|
|
|
|
|
|
char *bar_size_1 = &size_of_bar;
|
|
|
|
static char *bar_size_2 = &size_of_bar;
|
|
|
|
|
|
|
|
char *
|
|
|
|
bar_size1 (void)
|
|
|
|
{
|
|
|
|
return bar_size_1;
|
|
|
|
}
|
|
|
|
|
|
|
|
char *
|
|
|
|
bar_size2 (void)
|
|
|
|
{
|
|
|
|
return bar_size_2;
|
|
|
|
}
|
|
|
|
|
|
|
|
extern char foo[];
|
2022-10-27 18:43:13 +00:00
|
|
|
extern char size_of_foo asm ("foo@SIZE");
|
2014-09-12 22:14:23 +00:00
|
|
|
|
|
|
|
char *foo_size_1 = &size_of_foo;
|
|
|
|
static char *foo_size_2 = &size_of_foo;
|
|
|
|
|
|
|
|
char *
|
|
|
|
foo_size1 (void)
|
|
|
|
{
|
|
|
|
return foo_size_1;
|
|
|
|
}
|
|
|
|
|
|
|
|
char *
|
|
|
|
foo_size2 (void)
|
|
|
|
{
|
|
|
|
return foo_size_2;
|
|
|
|
}
|