News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests
NB: Posting URL's See here: Posted URL Change

Main Menu

MODEL warning

Started by sepult, October 28, 2022, 04:49:52 AM

Previous topic - Next topic

sepult

A simple app gives a warning
.386
.model flat, stdcall
.stack 4096
include ..\include\masm32rt.inc

.data

.code

start:
mov     eax,edx
invoke  ExitProcess,NULL

end start


..\include\masm32rt.inc(33) : warning A4011: multiple .MODEL directives found : .MODEL ignored

should i ignore this warning or i need to change something? Thanks.

zedd151

You only need the line where you include masm32rt.inc
The lines above it are not necessary.


masm32rt.inc already specifies processor and model.
If a change is needed, write that after including masm32rt.inc to override what is already specified in masm32rt.inc.
For a simple program, the stack size needn't be changed.

sepult

Thanks, no more warnings.

zedd151

 :thumbsup:
Sorry, I almost forgot the compulsory "Welcome to the forum" greeting, so welcome to the forum!  :biggrin:

daydreamer

Welcome to forum sepult  :thumbsup:
Only needed to use
686p ; all 686 mnemonics + protected mnemonics enabled
XMM ;so you gonna write SSE code
With only low 386 you can get errors if you want to use 486, 586,686 instructions

my none asm creations
https://masm32.com/board/index.php?topic=6937.msg74303#msg74303
I am an Invoker
"An Invoker is a mage who specializes in the manipulation of raw and elemental energies."
Like SIMD coding