Autor Beitrag
Beiri22
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 42



BeitragVerfasst: Do 25.05.06 12:16 
Ich habe schon mal gehört das das geht, aber wie bestimmt man die
Codegröße einer einzelnen funktion??
uall@ogc
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 1826
Erhaltene Danke: 11

Win 2000 & VMware
Delphi 3 Prof, Delphi 7 Prof
BeitragVerfasst: Do 25.05.06 12:33 
Ganz so einfach geht es nicht. Benutzt du keine APIs usw. kannst di einfach folgendes benutzen:

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
procedure DeineFunktion;
begin
  // mach was
end;
procedure DeineFunktionEnd asm end;


groesse := DWord(@DeineFunktionEnd)-DWord(@DeineFunktion);

_________________
wer andern eine grube gräbt hat ein grubengrabgerät
- oder einfach zu viel zeit
Beiri22 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 42



BeitragVerfasst: Do 25.05.06 12:46 
Das is ne Super Idee, ich probiers mal.

Aber was ist wenn ich eben solche verwende?
uall@ogc
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 1826
Erhaltene Danke: 11

Win 2000 & VMware
Delphi 3 Prof, Delphi 7 Prof
BeitragVerfasst: Do 25.05.06 13:01 
Die APIs selber werden dann nicht mitgerechnet. Lediglich dein Code.

_________________
wer andern eine grube gräbt hat ein grubengrabgerät
- oder einfach zu viel zeit