Using x86 and x87 assembly code in a GCC/gfortran environment.

Jerry DeLisle jvdelisle@charter.net
Fri Mar 23 22:44:00 GMT 2018


On 03/23/2018 02:32 PM, Phil Seeger via fortran wrote:
> Background. I have been using Fortran for more than 50 years. One of my 
> favorite projects was to compute the Mandelbrot set at magnifications up 
> to 10^10, maintaining precision by performing continuing iterations 
> totally within the x87 stack, with no memory references and no 
> round-offs, with a resolution of 19 significant digits. If the entire 
> Mandelbrot set were plotted at that magnification and at 150 dpi, the 
> width would be 1.6 million miles. A subroutine with the iteration loop 
> is appended.
> 
> The Problem. Because the program used GUI to get parameters for each 
> plot, and especially because I used the mouse to start and stop, the 
> program fails catastrophically under Win7 and later. The Microsoft API I 
> used to detect a mouse click no longer works! I have recently 
> decommissioned my last XP system, so I need to recompile. I have 
> installed MinGW (and gfortran), and have the program running with the 
> iteration loop written in REAL*8, but it looks a bit fuzzy.
> 

I don't know if this is useful to you, but you might want to take a look 
at gtk-fortran on github which will give you all the GUI stuff you would 
ever need. There is even an example Mandelbrot program.

Also, you might try quadmath (kind=16) which gfortran supports.

I do not know the status of these tools in a Windows environment. I do 
know that many applications run on windows using GTK

I have asked your questions on comp.lang.fortran?

Regards,

Jerry



More information about the Fortran mailing list