Content deleted Content added
→What is C?: new section Tags: Reverted Mobile edit Mobile web edit |
Tag: |
||
(3 intermediate revisions by 3 users not shown) | |||
Line 1:
{{lowercase title}}
{{Talkheader}}
{{WikiProject
{{WikiProject C/C++|importance=High}}
}}
== Article or redirect? ==
Line 84 ⟶ 86:
:Yes, the statement needs clarifying. The author might have had in mind the nomenclature of a particular assembly language or a macro name; but, otherwise, the statement appears erroneous. Struct is definitely the sort of complex data structure that complilers, not assemblers, deal with. So, there shouldn't be a one-to-one correspondence. [[User:Dhtwiki|Dhtwiki]] ([[User talk:Dhtwiki|talk]]) 22:44, 27 November 2015 (UTC)
::Various assemblers supported, and presumably still support, structs; Google 'asm struct' for confirmation. I suspect that C was first and assemblers added support to make it easier to call assembly modules from C. I think the assembler would be told to assume that some index register was pointing to a block of memory holding a struct, and the program could then use symbols (labels) as offsets within the struct. However, that is esoteric history and not much use to explain what a struct is. [[User:Johnuniq|Johnuniq]] ([[User talk:Johnuniq|talk]]) 23:45, 27 November 2015 (UTC)
|