|
|
Subscribe / Log in / New account

MSVC

MSVC

Posted Mar 8, 2013 19:50 UTC (Fri) by Cyberax (✭ supporter ✭, #52523)
In reply to: MSVC by jwakely
Parent article: Michaelsen: One

>I can't make Linux work on the desktop, therefore it's impossible, even though other people are telling me they've done it
Wrong. I _can_ make Linux work on desktop. I can't make it work every time with minimal maintenance for most of real world users out there.

>The compiler I claim is top-notch doesn't support a feature and I don't care about it, therefore it's unimportant, even though other people have said how it's important to them.
Yep, especially if it's such a minor feature.

Does gcc support C# interoperability, for example? It's a very real-world feature necessary for a lot of projects.

Or maybe "#pragma pack" to get a more fitting example?


to post comments

MSVC

Posted Mar 8, 2013 21:29 UTC (Fri) by mpr22 (subscriber, #60784) [Link] (2 responses)

GCC has a "pack" pragma, though it doesn't support the identifier feature of the Microsoft one.

MSVC

Posted Mar 8, 2013 21:58 UTC (Fri) by nix (subscriber, #2304) [Link] (1 responses)

If you're looking for GCC extensions among pragmas, you're looking in the wrong place. Look at attributes, where you will find not only packing, but also alignment control. (That Cyberax is arguing against GCC without even having searched the manual for the word 'pack' suggests that arguing with him is a waste of time.)

MSVC

Posted Mar 8, 2013 23:11 UTC (Fri) by Cyberax (✭ supporter ✭, #52523) [Link]

Actually, I just forgot that a long time has passed since the gcc 3.2 release. I had to add __atribute__ to a metric ton of structures when I was porting a Windows-based application to Unix, so I quite vividly remember that #pragma pack was not universally supported back then.


Copyright © 2025, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds