Author Topic: Flat memory model (Windows)  (Read 6969 times)

Offline Korybut

  • Jr. Member
  • *
  • Posts: 6
Flat memory model (Windows)
« on: February 19, 2021, 02:20:41 PM »
Hello!

Is possible to write code avoiding section directive and use flat memory model? If yes what object-file format and what linker I should use in this case?

Offline fredericopissarra

  • Full Member
  • **
  • Posts: 368
  • Country: br
Re: Flat memory model (Windows)
« Reply #1 on: February 19, 2021, 03:55:01 PM »
Not advisable. Code must go to `.text` section and data must go to `.data`, `.bss` or  `.rodata` sections.