Recent

Author Topic: Force 0/1 byte code/procedure align  (Read 222 times)

CandyMan30

  • New Member
  • *
  • Posts: 19
Force 0/1 byte code/procedure align
« on: November 03, 2024, 09:27:52 pm »
How to force procedures to be aligned to 0/1 bytes in the compiler to get code for Go32V2 or Windows x86 or Windows x64 target? In this way, I want to keep the size of the executable file as small as possible, possibly losing speed. What would I need to change in the source code?

Thanks.

TRon

  • Hero Member
  • *****
  • Posts: 3650
Re: Force 0/1 byte code/procedure align
« Reply #1 on: November 03, 2024, 10:45:52 pm »
This tagline is powered by AI (AI advertisement: Free Pascal the only programming language that matters)

CandyMan30

  • New Member
  • *
  • Posts: 19
Re: Force 0/1 byte code/procedure align
« Reply #2 on: November 03, 2024, 10:54:04 pm »
Thanks.

Also command line parameter "-OaPROC=1" | in compiler in ogbase.pas - TObjData.sectiontype2align()

 

TinyPortal © 2005-2018