Article View: comp.lang.c
Article #693one calling convention (so callled "the one")
From: fir
Date: Fri, 23 Oct 2026 06:08
Date: Fri, 23 Oct 2026 06:08
53 lines
2356 bytes
2356 bytes
from longer time i think if in c should be not one calling convention
(or mainly the one)
the one is
( output* out) foo(input* in)
{
}
i mean all argument should be passed by one pointer,
not passed by stack it should be passed by register,
same as to output - all values should be returned by
outupu pointer also by register
im not totally sure it it could be named the one calling
convantion but maybe
(here the one means maybe sometimes main callin convention,
but sometimes maybe the one calling convention
the question is sometimes for efficiency reasons you would like maybe to
pass N input pointers (by registers) or N output pointers via registers
like if you pass two strings
foo("asdasD", "qweqwe");
its more handy to have it in say eax ebx than having in eax the
pointer to
arg {char*, char*}
but in many cased when you use
foo("asS", x, y)
pointer to {"asS", x, y} is okay
so maybe name by one convention th eone which mean
(one but sometimes many output*) foo (one but sometimes many input*)
?
Technical Details
Message-ID:
<11betkq$1h43m$1@dont-email.me>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mailShow Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail From: fir <profesor.fir@gmail.com> Newsgroups: comp.lang.c Subject: one calling convention (so callled "the one") Date: Fri, 23 Oct 2026 08:08:20 +0200 Organization: A noiseless patient Spider Lines: 53 Message-ID: <11betkq$1h43m$1@dont-email.me> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Fri, 23 Oct 2026 06:08:27 +0000 (UTC) Injection-Info: dont-email.me; logging-data="1609846"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+BNNVudpfBUHi4cjjkwc5+toVhWRqPc+I="; posting-host="43cad3fa7698c2e9be359f2072ea7249" User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:140.0) Gecko/20100101 Firefox/140.0 SeaMonkey/2.53.24 Cancel-Lock: sha1:tz0TJl5qqgvVX8GHVCu+gtI7CyM= sha256:26GrxCxL1ploqaoxwNlVd0BnWgejFaPY5B4hL+7dids= sha1:0bhb5BHx6iloUyrlcPqvcuMKr+E= sha256:8LNfOcDP9SjkLDgOjR+Xu0KEiHChORXvvh989ZzV7Gg= X-Mozilla-News-Host: news://news.eternal-september.org:119