Author Topic: Spying on the compiler  (Read 2348 times)

0 Members and 1 Guest are viewing this topic.

Charles Pegge

  • Guest
Spying on the compiler
« on: June 02, 2012, 11:27:37 AM »
#show

This is a command I introduced on the 24th May.

It displays the Assembly code of a statement at compile time (before the program is executed)

thus

double x
#show x=cos(pi)


displays a messagebox containing:

fldpi
fcos
fstp qword [ebx+4096]



Charles




Peter

  • Guest
Re: Spying on the compiler
« Reply #1 on: June 02, 2012, 11:43:33 AM »
Charles,

This is what I need. 

Thank you. 

Charles Pegge

  • Guest
Re: Spying on the compiler
« Reply #2 on: June 02, 2012, 11:52:52 AM »

There is an earlier method, but #show is easier to use.

The older method is still useful for several lines of code, and works when you hit F7 to compile in Scite.

The Assembly code block appears in the right hand panel, and may be copied to the clipboard.

Use 3 hashes to mark the start and end of a code section

###
for i=1 to 10
  j++
next
###


Charles