gfxgfx
 
Please login or register.

Login with username, password and session length
 
gfx gfx
gfx
1611 Posts in 533 Topics by 777 Members - Latest Member: machleid October 03, 2022, 06:02:12 PM
*
gfx* Home | Help | Search | Login | Register | gfx
gfx
Absoft User Forum  |  Support  |  General  |  How to implement memory initialize - memset?
gfx
gfxgfx
 

Author Topic: How to implement memory initialize - memset?  (Read 642 times)

Mike Linacre

  • Sr. Member
  • ****
  • Posts: 258
How to implement memory initialize - memset?
« on: June 02, 2022, 08:15:09 PM »
Hi Folks:

Need to initialize gigabyte blocks of memory multiple times, so am looking to implement memset (RtlFillMemory) in Absoft Fortran. Suggestions how to do that?
Thanks

Mike Linacre

  • Sr. Member
  • ****
  • Posts: 258
Re: How to implement memory initialize - memset?
« Reply #1 on: June 02, 2022, 11:21:16 PM »
Solved :

Add library: kernel32. lib

Interface RtlFillMemory
STDCALL SUBROUTINE RtlFillMemory (memorystart, memorylength, bytecharacter)
....
END SUBROUTINE RtlFillMemory

CALL RtlFillMemory (memorystart, memorylength, bytecharacter)



Absoft User Forum  |  Support  |  General  |  How to implement memory initialize - memset?
 

gfxgfx
gfx gfx
Powered by MySQL Powered by PHP Valid XHTML 1.0! Valid CSS!