flat assembler
Message board for the users of flat assembler.

Index > Linux > 2 ways of declaring/creating a struct

Author
Thread Post new topic Reply to topic
komoco



Joined: 27 Sep 2017
Posts: 2
komoco 27 Sep 2017, 02:16
What's the difference between these 2?

Code:
; 1
struct my_struct
    .a rw 1
    .b rw 1
    .c rb 1
    .d rb 1
ends

; 2
struct my_struct
    .a dw ?
    .b dw ?
    .c db ?
    .d db ?
ends
    



In particular, for Linux, if it matters.
Post 27 Sep 2017, 02:16
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 20344
Location: In your JS exploiting you and your system
revolution 27 Sep 2017, 03:03
There is no difference. Both structures are exactly the same.
Post 27 Sep 2017, 03:03
View user's profile Send private message Visit poster's website Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.