definition module CommonObjectToDisk; import State, StdEnv; from SymbolTable import ::LibraryList; import PlatformLinkOptions; :: *WriteOutputRecord = { file_or_memory :: !Int , offset :: !Int , string :: !{#Char} , file_n :: !Int , module_n :: !Int , state :: !*State }; class Target2 a where { WriteOutput :: !WriteOutputRecord !*a -> (!*State,*a) }; write_code_to_pe_files :: !Int !Bool !Int !Int !(!Int,!Int) !State !Bool !*a !*Files -> ((!*a,!(!Int,!Int),!State),!*Files) | Target2 a; :: *WriteState = { do_relocations :: !Bool , buffers :: !*{*{#Char}} , buffers_i :: !*{#Int} , text_offset :: !Int , text_buffer :: !*{#Char} }; WriteCode :: !*File !*PlatformLinkOptions !*State !*Files -> (!*File,!*PlatformLinkOptions,!*State,!*Files,!*WriteState);