Autor Beitrag
Koj
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 16


Delphi 2005 Pers., Lazarus, NASM, FASM, VB 2005 EpressEdition
BeitragVerfasst: Di 13.05.08 19:11 
Hi,

gibts ein Programm, das Pascal-Code in Assembler-Code übersetzt?
Xentar
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 2077
Erhaltene Danke: 2

Win XP
Delphi 5 Ent., Delphi 2007 Prof
BeitragVerfasst: Di 13.05.08 19:34 
Der Delphi Compiler?

Worauf zielt die Frage hinaus?
Koj Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 16


Delphi 2005 Pers., Lazarus, NASM, FASM, VB 2005 EpressEdition
BeitragVerfasst: Di 13.05.08 19:46 
user profile iconXentar hat folgendes geschrieben:
Der Delphi Compiler?

Worauf zielt die Frage hinaus?


ich möchte aus dem Pascal-Code ASM-Code machen.

Wie gehtn das mit dem Delphi Compiler?
Xentar
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 2077
Erhaltene Danke: 2

Win XP
Delphi 5 Ent., Delphi 2007 Prof
BeitragVerfasst: Di 13.05.08 19:50 
Ich versteh die Frage immer noch nicht..

Wenn du Pascal Code schreibst, und das Programm startest, macht der Compiler daraus automatisch ASM Code. Um dir diesen anzugucken, setzt du an der entsprechenden Stelle einen Haltepunkt, und sobald dort angehalten öffnest du das CPU Fenster (Glaub, STRG + Alt + C war's).

Wenn du selber ASM Code schreiben möchtest, geht das auch:
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
Procedure Test;
begin
  // Hier Pascal Code

  asm
    // hier eigener ASM Code
  end;

end;
Koj Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 16


Delphi 2005 Pers., Lazarus, NASM, FASM, VB 2005 EpressEdition
BeitragVerfasst: Di 13.05.08 19:55 
user profile iconXentar hat folgendes geschrieben:
Ich versteh die Frage immer noch nicht..

Wenn du Pascal Code schreibst, und das Programm startest, macht der Compiler daraus automatisch ASM Code. Um dir diesen anzugucken, setzt du an der entsprechenden Stelle einen Haltepunkt, und sobald dort angehalten öffnest du das CPU Fenster (Glaub, STRG + Alt + C war's).



ich meine, dass man den ASM-Code dann abspeichern kann.
Martok
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 3661
Erhaltene Danke: 604

Win 8.1, Win 10 x64
Pascal: Lazarus Snapshot, Delphi 7,2007; PHP, JS: WebStorm
BeitragVerfasst: Di 13.05.08 22:01 
Imho müsste der FPC das können. Bin mir aber nicht sicher..

_________________
"The phoenix's price isn't inevitable. It's not part of some deep balance built into the universe. It's just the parts of the game where you haven't figured out yet how to cheat."