Thanks Francoise. I have rolled in your suggestion for the comment.
Please find attached the new proposal draft (in word format). Still
working on compiling on windows, converting to PDF and uploading to
Mantis.
------------------------------------------------------------------------
------------
George Scott
(503) 685-0857
------------------------------------------------------------------------
------------
-----Original Message-----
From: Francoise Martinolle [mailto:fm@cadence.com]
Sent: Thursday, August 04, 2011 9:39 AM
To: Scott, George; Michael Rohleder; SystemVerilog CC DWG
Subject: RE: [sv-cc] WIN32 and _WIN32 define
According to the definition:
The dllexport and dllimport storage-class attributes are
Microsoft-specific extensions to the C and C++ languages. They enable
you to export and import functions, data, and objects to and from a DLL.
=> The export and import are to and from the dll.
I read the above as you export to the DLL and you import from the dll.
May be the comment in our header file should say:
export to the DLL
import from the DLL
Francoise
'
-----Original Message-----
From: owner-sv-cc@eda.org [mailto:owner-sv-cc@eda.org] On Behalf Of
Scott, George
Sent: Wednesday, August 03, 2011 2:41 AM
To: Michael Rohleder; SystemVerilog CC DWG
Subject: RE: [sv-cc] WIN32 and _WIN32 define
For Mantis 3022, here is another link that describes the predefined ANSI
C and Microsoft C++ macros.
http://msdn.microsoft.com/en-us/library/b0084kay.aspx
To summarize the following are Microsoft C++ compiler macro definitions:
WIN32 is not defined by the compiler.
_MSC_VER is always defined.
_WIN32 is always defined for both 32 and 64 bit applications.
_WIN64 is only defined for 64 bit applications.
Also for reference, __declspec(dllimport) is a Microsoft specific
storage class attribute described by
http://msdn.microsoft.com/en-us/library/dabb5z75%28v=vs.80%29.aspx
------------------------------------------------------------------------
------------
George Scott
(503) 685-0857
------------------------------------------------------------------------
------------
-----Original Message-----
From: owner-sv-cc@eda.org [mailto:owner-sv-cc@eda.org] On Behalf Of
Michael Rohleder
Sent: Wednesday, July 20, 2011 9:25 AM
To: SystemVerilog CC DWG
Subject: [sv-cc] WIN32 and _WIN32 define
Have a look at this...
http://support.microsoft.com/kb/122306
-- Michael Rohleder, Dipl.-Inform. Sr. Member of Technical Staff New Product Development Center, Munich Freescale Semiconductor, Inc. www: http://www.freescale.com email: michael.rohleder@freescale.com phone: +49-89-92103-259 fax: +49-89-92103-101 This e-mail, and any associated attachments have been classified as: [ ] Public [ ] Freescale Semiconductor Internal Use Only [x] Freescale Semiconductor Confidential Proprietary Freescale Halbleiter Deutschland GmbH Schatzbogen 7 D-81829 Muenchen www.freescale.com USt.-ID-Nr./VAT-ID-No. DE813898243 Steuernummer/Tax No. 143/138/30552 Sitz der Gesellschaft/Registered Office: Muenchen Registergericht/Registered Court: Amtsgericht Muenchen HR B 151590 Geschaeftsfuehrer/General Manager: Juergen Weyer, Randy Allen Hyzak, Marie-Pascale Diez, John Holmes -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.
This archive was generated by hypermail 2.1.8 : Thu Aug 04 2011 - 09:56:34 PDT