Do compilers inline functions even if the programmer could not do
it manually because the needed information is hidden at the language level?
I am talking about stuff like incomplete types and static variables e.g.
...
get_attribute(o bject);
...
Where object is an incomplete type in this unit and get_attribute basically
just does object->attribute.
Or
get_color(x);
which should translate into Colors[x] but Colors[] is an array declared
static in another unit i.e. not accessible here at language level.
it manually because the needed information is hidden at the language level?
I am talking about stuff like incomplete types and static variables e.g.
...
get_attribute(o bject);
...
Where object is an incomplete type in this unit and get_attribute basically
just does object->attribute.
Or
get_color(x);
which should translate into Colors[x] but Colors[] is an array declared
static in another unit i.e. not accessible here at language level.
Comment