AKB Forums

Go Back   AKB Forums > Technical sections > Languages, Compilers and Interpreters
Home Register Blogs FAQ Members List Calendar Downloads Arcade Mark Forums Read

Languages, Compilers and Interpreters C,C++,C#,.NET,Java,PHP,Perl,SQL and more

Troubles when posting message? Click here! :: Проблемы с отправлением сообщения? Нажмите сюда!

Reply
 
LinkBack Thread Tools Display Modes
Old Jan 22, 2005, 16:13  
★★★★★★★★★★★★★
 
Hrach_Techie's Avatar
 
Join Date: Aug 2004
Location: ★★★★★★★★★★★★★
Posts: 16,490
Rep Power: 8
Reputation: 437
Question А что невозможно написать на C?

итак?
__________________
Мадмазель, Медам, Месье! "Глория" меняет курс и направляется в Кейптаун! Кому это не нравится будет расстрелян на месте. (с)

http://texneg.livejournal.com
Hrach_Techie is offline   Reply With Quote Quote selected
Old Feb 8, 2005, 16:44   #46
incomer
 
BlackCode's Avatar
 
Join Date: Feb 2005
Location: Yerevan
Posts: 16
Rep Power: 0
Reputation: 10
Send a message via ICQ to BlackCode
Quote:
с начала через регистры ECX,EDX только потом через стэк
За ислючением объектов. Объекты всегда передаются через стэк.
__________________
Regards, Aram
BlackCode is offline   Reply With Quote Quote selected
Old Feb 9, 2005, 05:49   #47
the mochinger
 
Hans Andersen's Avatar
 
Join Date: Feb 2002
Location: Paranoid Android, @10:50
Posts: 1,769
Rep Power: 7
Reputation: 109
Send a message via ICQ to Hans Andersen Send a message via MSN to Hans Andersen Send a message via Yahoo to Hans Andersen
Quote:
Originally Posted by BlackCode
Anderson


Agregat прав.
agregat vsegda prav

Quote:
Originally Posted by BlackCode
Уже догадываюсь какой пример можете принести.
В мембер функциях типа thiscall (этот тип задан по умолчанию) так назывемый this, указатель на объект передаётся неявно как аргумент, через регистр ECX.
Такая-же функция C типа __cdecl (этот тип задан по умолчанию) тот же параметр, указатель
в явном виде как аргумент должен передать через стэк . В первом случае, через регистр будет быстрее.
tak ty chto s chem sravnivaesh to a???

Quote:
Originally Posted by BlackCode
Вы наверное имеете ввиду функции типа __stdcall и __cdecl потому, что в функциях __fastcall
параметры передаются с начала через регистры ECX,EDX только потом через стэк. Тоесть в этом случае, вслучае одного параметра будет тоже самое.
[/quote]
polnyj offtop
__________________
The flower that blooms in adversity is the most rare and beautiful of all.
Hans Andersen is offline   Reply With Quote Quote selected
Old Feb 9, 2005, 06:13   #48
incomer
 
BlackCode's Avatar
 
Join Date: Feb 2005
Location: Yerevan
Posts: 16
Rep Power: 0
Reputation: 10
Send a message via ICQ to BlackCode
Cool

Quote:
tak ty chto s chem sravnivaesh to a???
vot primer bezdarnogo metoda A::method() i analogichnoy funktsii
func. Na osnovanii vishe skazannogo ugadayte spervogo raza, kakoy iz nix budet bistree ?

Code:
class A
{
private:
    int var;
public:
    void     method();
};

void    A::method()
{
     var ++ ;
}

void    func(int & var)
{
     var ++ ;
}
Quote:
polnyj offtop
toyest ?
__________________
Regards, Aram
BlackCode is offline   Reply With Quote Quote selected
Old Feb 9, 2005, 06:22   #49
the mochinger
 
Hans Andersen's Avatar
 
Join Date: Feb 2002
Location: Paranoid Android, @10:50
Posts: 1,769
Rep Power: 7
Reputation: 109
Send a message via ICQ to Hans Andersen Send a message via MSN to Hans Andersen Send a message via Yahoo to Hans Andersen
Quote:
Originally Posted by BlackCode
vot primer bezdarnogo metoda A::method() i analogichnoy funktsii
func. Na osnovanii vishe skazannogo ugadayte spervogo raza, kakoy iz nix budet bistree ?

Code:
class A
{
private:
    int var;
public:
    void     method();
};

void    A::method()
{
     var ++ ;
}

void    func(int & var)
{
     var ++ ;
}
veeee de du el hamemati void __fastcall func(int& var)-i het.
vor contr orinak en berum, tenz chen anum, ajl objektiv
__________________
The flower that blooms in adversity is the most rare and beautiful of all.
Hans Andersen is offline   Reply With Quote Quote selected
Old Feb 9, 2005, 06:28   #50
incomer
 
BlackCode's Avatar
 
Join Date: Feb 2005
Location: Yerevan
Posts: 16
Rep Power: 0
Reputation: 10
Send a message via ICQ to BlackCode
Wink

iharke ayd depqum, ays orinaki vra nuyn a ardyunqna talu.

Naxord posterum es da nshelem.
__________________
Regards, Aram
BlackCode is offline   Reply With Quote Quote selected
Old Feb 9, 2005, 06:31   #51
the mochinger
 
Hans Andersen's Avatar
 
Join Date: Feb 2002
Location: Paranoid Android, @10:50
Posts: 1,769
Rep Power: 7
Reputation: 109
Send a message via ICQ to Hans Andersen Send a message via MSN to Hans Andersen Send a message via Yahoo to Hans Andersen
Quote:
Originally Posted by BlackCode
iharke ayd depqum, ays orinaki vra nuyn a ardyunqna talu.

Naxord posterum es da nshelem.
de uremn kontr orinak der ches berel...
__________________
The flower that blooms in adversity is the most rare and beautiful of all.
Hans Andersen is offline   Reply With Quote Quote selected
Old Feb 9, 2005, 09:04   #52
Грустно...
 
Agregat's Avatar
 
Join Date: Aug 2002
Location: Там, где всегда идут дожди
Posts: 21,616
Rep Power: 11
Reputation: 202
Send a message via ICQ to Agregat Send a message via MSN to Agregat
__fastcall фича исключительно билдера. для объяснений почему вызов метода может оказаться быстрее, чем свободной функции обратитесь в литературу (Мейерс, например).
__________________
http://аvitya.livejournal.com
Хотели, как лучше, а получилось даже хуже...
Лозунг шахматиста: На каждый шах - ответим матом!
Agregat is offline   Reply With Quote Quote selected
Old Feb 9, 2005, 09:29   #53
★★★★★★★★★★★★★
 
Hrach_Techie's Avatar
 
Join Date: Aug 2004
Location: ★★★★★★★★★★★★★
Posts: 16,490
Rep Power: 8
Reputation: 437
Quote:
Originally Posted by Agregat
It is practically impossible to teach good programming style to students that have had prior exposure to BASIC: as potential programmers they are mentally mutilated beyond hope of regeneration. -- Edsger W. Dijkstra

Who the **** is Edsger W. Dijkstra?
__________________
Мадмазель, Медам, Месье! "Глория" меняет курс и направляется в Кейптаун! Кому это не нравится будет расстрелян на месте. (с)

http://texneg.livejournal.com
Hrach_Techie is offline   Reply With Quote Quote selected
Old Feb 9, 2005, 10:10   #54
the mochinger
 
Hans Andersen's Avatar
 
Join Date: Feb 2002
Location: Paranoid Android, @10:50
Posts: 1,769
Rep Power: 7
Reputation: 109
Send a message via ICQ to Hans Andersen Send a message via MSN to Hans Andersen Send a message via Yahoo to Hans Andersen
Red face

Quote:
Originally Posted by Agregat
__fastcall фича исключительно билдера. для объяснений почему вызов метода может оказаться быстрее, чем свободной функции обратитесь в литературу (Мейерс, например).
__fastcall ficha podderjivajut mnogo compilers, including VStudio's one.
poproshu tut mayersami ne pugat' ljudej, esli chto znaete, to v studiju please.
__________________
The flower that blooms in adversity is the most rare and beautiful of all.
Hans Andersen is offline   Reply With Quote Quote selected
Old Feb 9, 2005, 10:13   #55
Грустно...
 
Agregat's Avatar
 
Join Date: Aug 2002
Location: Там, где всегда идут дожди
Posts: 21,616
Rep Power: 11
Reputation: 202
Send a message via ICQ to Agregat Send a message via MSN to Agregat
Quote:
Originally Posted by Hrach_Techie
Who the **** is Edsger W. Dijkstra?
Гений.
__________________
http://аvitya.livejournal.com
Хотели, как лучше, а получилось даже хуже...
Лозунг шахматиста: На каждый шах - ответим матом!
Agregat is offline   Reply With Quote Quote selected
Old Feb 9, 2005, 10:15   #56
Грустно...
 
Agregat's Avatar
 
Join Date: Aug 2002
Location: Там, где всегда идут дожди
Posts: 21,616
Rep Power: 11
Reputation: 202
Send a message via ICQ to Agregat Send a message via MSN to Agregat
Quote:
Originally Posted by Hans Andersen
__fastcall ficha podderjivajut mnogo compilers, including VStudio's one.
poproshu tut mayersami ne pugat' ljudej, esli chto znaete, to v studiju please.
1. ОК. Пусть поддерживают.
2. Нет уж. Я дал источник, а конкретно ищите и читайте сами
__________________
http://аvitya.livejournal.com
Хотели, как лучше, а получилось даже хуже...
Лозунг шахматиста: На каждый шах - ответим матом!
Agregat is offline   Reply With Quote Quote selected
Old Feb 9, 2005, 10:48   #57
the mochinger
 
Hans Andersen's Avatar
 
Join Date: Feb 2002
Location: Paranoid Android, @10:50
Posts: 1,769
Rep Power: 7
Reputation: 109
Send a message via ICQ to Hans Andersen Send a message via MSN to Hans Andersen Send a message via Yahoo to Hans Andersen
Quote:
Originally Posted by Agregat
2. Нет уж. Я дал источник, а конкретно ищите и читайте сами
tipa "genie dajut idei, a talantlivye realizujut".
__________________
The flower that blooms in adversity is the most rare and beautiful of all.
Hans Andersen is offline   Reply With Quote Quote selected
Old Feb 9, 2005, 11:04   #58
Грустно...
 
Agregat's Avatar
 
Join Date: Aug 2002
Location: Там, где всегда идут дожди
Posts: 21,616
Rep Power: 11
Reputation: 202
Send a message via ICQ to Agregat Send a message via MSN to Agregat
вы вольны интерпретировать на ваше усмотрение.
__________________
http://аvitya.livejournal.com
Хотели, как лучше, а получилось даже хуже...
Лозунг шахматиста: На каждый шах - ответим матом!
Agregat is offline   Reply With Quote Quote selected
Old Feb 9, 2005, 11:32   #59
the mochinger
 
Hans Andersen's Avatar
 
Join Date: Feb 2002
Location: Paranoid Android, @10:50
Posts: 1,769
Rep Power: 7
Reputation: 109
Send a message via ICQ to Hans Andersen Send a message via MSN to Hans Andersen Send a message via Yahoo to Hans Andersen
of course. prosto terpet' ne mogu kogda delajut goloslovnyx zojavlenii. Assemiki akanjy kanchi
__________________
The flower that blooms in adversity is the most rare and beautiful of all.
Hans Andersen is offline   Reply With Quote Quote selected
Old Feb 12, 2005, 17:01   #60
incomer
 
BlackCode's Avatar
 
Join Date: Feb 2005
Location: Yerevan
Posts: 16
Rep Power: 0
Reputation: 10
Send a message via ICQ to BlackCode
Quote:
veeee de du el hamemati void __fastcall func(int& var)-i het.
Vor __fastcall i het hamematem uzats ardyunq@ chem stana =)

Quote:
vor contr orinak en berum, tenz chen anum, ajl objektiv
inchu ?

Quote:
de uremn kontr orinak der ches berel...
Verev@ parz orinaka, vor@ tsuytsa talis, te inchpes default member
funktsyan karoxa aveli arag ashxatel hamapatasxan default tipi hasarak global funktsiayits.
__________________
Regards, Aram
BlackCode is offline   Reply With Quote Quote selected
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Не приврать — истории не написать. groul History and Politics 0 Nov 10, 2003 21:49
Создатель дизассемблера Ida дал своё первое в жизни интервью! acid Software Security 2 May 29, 2003 04:01
Ещё о Дарвине. Gates General 32 Sep 21, 2002 11:41


All times are GMT. The time now is 23:44.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
This board was founded on September 29, 2001
Powered by Viper Internet

Affordable Web Hosting | ParevNet

Buy text link