Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / Managed C++ / October 2004

Tip: Looking for answers? Try searching our database.

/clr and /GM option

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Maileen - 21 Oct 2004 21:16 GMT
Hi,

I use the /clr option due to my needs for automation of Excel.
Unfortunately this option excludes /Gm which normal should reduce the
build...
instead of having a build of 40 000 kbits, now I have more than 1.5
Mbits application...

Is there a another way to reduce the EXE file directly from VC.NET options ?

Thanks,
Maileen
Tomas Restrepo \(MVP\) - 22 Oct 2004 01:12 GMT
Maileen,

> I use the /clr option due to my needs for automation of Excel.
> Unfortunately this option excludes /Gm which normal should reduce the
[quoted text clipped - 3 lines]
>
> Is there a another way to reduce the EXE file directly from VC.NET options ?

Are you saying that the resulting executable is larger? humm... well, it
might be a side effect of using /clr and nothing to do with not using /Gm
(which is used to improve compilation time, not resulting executable size).

You could possibly split your code into more than one module (say a couple
of dlls instead of just one) to minimize this effect, though its hard to say
with so little information....

(BTW, I'm assuming you meant 40 KB to 1.5 MB or something like that,
although I fail to see why it would be such a big difference.... the numbers
you specified don't really make much sense, so it's hard to say what you
really meant ;))

Signature

Tomas Restrepo
tomasr@mvps.org

Steve McLellan - 22 Oct 2004 19:56 GMT
40 000 kbits is 40MB, but numbers aside, compiling with /CLR is going to
require the .NET framework to be installed on client machines anyway, so the
executable size may not be the biggest of your problems.

How were you compiling before, if you can't use Excel automation without
/clr? Maybe the extra stuff you've put in (or, as Tomas says, simply the
fact that you're now compiling with /clr) makes a difference.

Steve

> Hi,
>
[quoted text clipped - 9 lines]
> Thanks,
> Maileen
The unProfessional - 24 Oct 2004 06:19 GMT
Actually, there are 8 bits in a byte, so 40,000 kbits != 40 MB.  40MB is
actually 40,960 kbytes, or 327,680 kbits (but kbits are seldom used unless
you're referring to bandwidth.

I know this has nothing to do with your topic... just thought I'd clarify.
It may come in useful :)

> 40 000 kbits is 40MB, but numbers aside, compiling with /CLR is going to
> require the .NET framework to be installed on client machines anyway, so the
[quoted text clipped - 19 lines]
> > Thanks,
> > Maileen
Gabest - 24 Oct 2004 21:44 GMT
> Actually, there are 8 bits in a byte, so 40,000 kbits != 40 MB.  40MB is
> actually 40,960 kbytes, or 327,680 kbits (but kbits are seldom used unless
> you're referring to bandwidth.
>
> I know this has nothing to do with your topic... just thought I'd clarify.
> It may come in useful :)

I don't think SI and storage medium makers would agree with you! :P

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.