Liste des Groupes | Revenir à c arch |
Stefan Monnier <monnier@iro.umontreal.ca> writes:
[Someone wrote:]ABI calling conventions tend to be designed to support at least C,>
including varargs and often also tolerant of differences between the
number of arguments in the caller and callee.
I can agree that it's important to support those use-cases (varargs
obviously, mismatched arg numbers less so),
You are head of a group of people who design a new architecture (say,
it's 2010 and you design ARM A64, or it's 2014 and you design RISC-V).
Your ABI designer comes to you and tells you that his life would be
easier if it was ok that programs with mismatched arguments don't need
to work. Would you tell him that they don't need to work?
If yes, a few years down the road your prospective customers have to
decide whether to go for your newfangled architecture or one of the
established ones. They learn that a number of programs work
everywhere else, but not on your architecture. How many of them will
be placated by your reasoning that these programs are not strictly
confoming standard programs? How many will be alarmed by your
admission that you find it ok that you find it ok that such programs
don't work on your architecture? After all, hardly any program is a
strictly conforming standard program.
Les messages affichés proviennent d'usenet.