?

Log in

No account? Create an account
Читая обсуждение http://ivan-gandhi.livejournal.com/3329246.html и… - Cyril Pertsev
September 13th, 2015
02:21 pm

[Link]

Previous Entry Share Next Entry

(91 comments | Leave a comment)

Comments
 
[User Picture]
From:_slw
Date:September 14th, 2015 12:16 pm (UTC)
(Link)
я попробовал в своем clang и gcc -- нету.

int cdecl is_one(void)
{
        return 1;
}


t.c:1:11: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'is_one'
 int cdecl is_one(void) 
[User Picture]
From:permea_kra
Date:September 14th, 2015 12:26 pm (UTC)
(Link)
some_crap some_shit(some_bullshit) __attribute__((cdecl)); ??
some_crap some_shit(some_bullshit total_bullshit) {
some_shitty_code;
return some_crap;
}
[User Picture]
From:_slw
Date:September 14th, 2015 12:46 pm (UTC)
(Link)
t.c:2:1: warning: 'cdecl' attribute ignored [-Wattributes]
[User Picture]
From:permea_kra
Date:September 14th, 2015 12:51 pm (UTC)
(Link)
Ну значить у вас x86-64
Там ms_abi и sysv_abi, но там тоже стэк чиститься вызывающим функцию кодом, что перекрывает возможность реализации TCO.
[User Picture]
From:_slw
Date:September 14th, 2015 01:00 pm (UTC)
(Link)
ms_abi? sysv_abi?
WUT?
[User Picture]
From:permea_kra
Date:September 14th, 2015 01:28 pm (UTC)
(Link)
google?
[User Picture]
From:_slw
Date:September 14th, 2015 05:09 pm (UTC)
(Link)
MSABI is a NGO implementing cost effective, community based water, sanitation and hygiene projects in Tanzania.
[User Picture]
From:permea_kra
Date:September 14th, 2015 08:09 pm (UTC)
(Link)
https://en.wikipedia.org/wiki/Calling_convention

Edited at 2015-09-14 08:10 pm (UTC)
[User Picture]
From:_slw
Date:September 14th, 2015 08:32 pm (UTC)
(Link)
ну круто. но у меня такого нет.
[User Picture]
From:permea_kra
Date:September 14th, 2015 09:48 pm (UTC)
(Link)
ммм.
какая-то calling convention есть всегда.
[User Picture]
From:permea_kra
Date:September 16th, 2015 06:37 am (UTC)
(Link)
матчасть изучать не пробовали?
[User Picture]
From:_slw
Date:September 16th, 2015 10:21 am (UTC)
(Link)
пробовал. ничего с буквами ms не попадалось. а что?
My Website Powered by LiveJournal.com