How I can increase size of stack in assembly (NASM OS X intel64)

I used .STACK 4096 before section .data but return this error

error: attempt to define a local label before any non-local labels

 error: parser: instruction expected

Please guide me.

This is dependant on a number of things, but from this it looks like you can just flag the linker.

May I ask why you're trying to change the stack size? Generally speaking, there is a way around increasing the stack size.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.