Featured post
Does C have a standard ABI? -
from discussion somewhere else:
c++ has no standard abi
but neither c, right?
on given platform pretty does. wouldn't useful lingua franca inter-language communication if lacked one.
what's take on this?
c defines no abi. in fact, bends on backwards avoid defining abi. people, me, have spent of programming lives programming in c on 16/32/64 bit architectures 8 bit bytes, 2's complement arithmetic , flat address spaces, quite surprised on reading convoluted language of current c standard.
for example, read stuff pointers. standard doesn't simple "a pointer address" making assumption abi. in particular, allows pointers being in different address spaces , having varying width.
an abi mapping execution model of language particular machine/operating system/compiler combination. makes no sense define 1 in language specification because runs risk of excluding c implementations on architectures.
- Get link
- X
- Other Apps
Comments
Post a Comment