C problem...se megethos domhs
Aggelos Economopoulos
aoiko at cc.ece.ntua.gr
Sun Jan 25 20:09:08 EET 2004
On Sun, 25 Jan 2004 16:02:21 +0200
V13 <v13 at priest.com> wrote:
> On Sunday 25 January 2004 15:54, Aggelos Economopoulos wrote:
> > On Sun, 25 Jan 2004 15:12:54 +0200
> > V13 <v13 at priest.com> wrote:
> > [snip]
> >
> > > > [1] Alla exe ypopsin sou oti to standard tis C den perigrafei to
> > > > pos kaleite i synartisi, px se merikes arxitektonikes oi
> > > > parametroi den pernane sto stack alla se registers, i den
> > > > apeteite kan i yparksi stack (an mporei to implementation na
> > > > kanei oti prepei na kanei kai xoris stack). Genikos i C
> > > > kathorizei symperifora, oxi implementation.
> > >
> > > Sto C calling convention oles oi parametroi pernane stin stiba
> > > ektos kai an milame gia inline functions h tipota trela
> > > optimizations. AFAIK ayto poy perigrafeis einai extension
> > > orismenon compilers (p.x. borland opoy epitygxanetai me to
> > > __fastcall) to opoio pernaei tis protes 1-2 parametroys se
> > > kataxorites.
> > >
> > > To na pernas parametroys se kataxorites einai genika kakh idea,
> > > ektos kai an eisai sigoyros oti se mia sygkekrimeni periptosi kati
> > > tetoio tha boithisei... Ayto isxyei gia poly mikres functions oi
> > > opoies einai protimotero na ginontai inline (kai fysika den milame
> > > gia synartiseis poy anikoyn se bibliothikes mias kai to perasma
> > > parametron se kataxorites apokliei kati tetoio)
> >
> > Den nomizw oti einai genika kakh idea. Blepe to mail tou Andi Kleen
> > sthn l-k (appended) kai to thread pou akolou8hse - ta kerdh
> > orismenes fores einai e3wpragmatika. E3allou, sunh8izw na to
> > xrhsimopoiw (to regparm __attribute__ tou gcc) otan 8elw na grapsw
> > mia asm function :)
>
> An kai den exo ypopsi to thread, o kernel einai isos mia apo tis
> kalyteres periptoseis opoy 'ksereis ti kaneis'. Ektos aytoy, to oti
> meionei to megethos toy kodika einai gnosto, opos kai to __stdcall..
agreed.
> Pantos blepo oti h LGU exei kapoio syntonismo me tin lkml (14 Jan
> ekei, 23-24 Jan edo)... Pame kala ? :)
Kataplhktika :-). Kaname ena barely non-trivial thread - auto to
e3amhno. Sthn lgu htan na ginei h suzhthsh gia to inclusion tou
anonobjrmap patch ston 2.7 alla mas efage to language barrier 8)
> Anyway... isos se merika xronia opoy oi IA64 tha xrisimopoioyntai kata
> koron ayto na'nai to default mias kai ekei yparxoyn parapano apo
> arketoi registers afieromenoi sto perasma parametron [1].
Se merika xronia uparxei sobarh pi8anothta kapoios pou 8a diabazei auto
to thread sta archives na xreiastei na psa3ei sto google-equivalent ths
epoxhs tou ti shmainei to "IA64" 8)
Aggelos
More information about the Linux-greek-users
mailing list