C problem...se megethos domhs
V13
v13 at priest.com
Sun Jan 25 16:02:21 EET 2004
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..
Pantos blepo oti h LGU exei kapoio syntonismo me tin lkml (14 Jan ekei, 23-24
Jan edo)... Pame kala ? :)
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].
> Aggelos
<<V13>>
[1] phrack #57, 0x05
More information about the Linux-greek-users
mailing list