Prev: bandlimited Gaussian signal
Next: Active Noise Control
From: Dominique on 8 Apr 2010 07:00 Hi all !! I am new on maltab, and I recently receive my trial DVD, my company plan to purchase a license by the end of the month. BUT... Our project consist of using matlab code/function in a C++ application or DLL. We will see either use the MCR or just the PC where matlab have been install. So I use the mcc command like this : Trial>> mcc -B cpplib:testylib hello.m or like this : Trial>> mcc -W lib:testlib -T link:lib magicsquare.m or simply I am using the deployment tool provided : The result is : 1. 1 hour of waiting the matlab to compile and produce something 2. a CTF or a DLL file of 1 Gigabit minimum (si si : 1,000,000 KB min) !!! So can somebody tell me how on earth a software can produce such result in a export operation now days ?????!!!! Maybe there are a bug someway ?? how come a simple "hello world" could become a 1 Gb size file !!!! Even if matlab is suppose to be able to calculate the formula of time travel, this is not a little exaggerate ? Also in case I am really missing something, how come a software can allow this ? It should be existing a warning thing saying that is too much.. I don't know. So please, please, I begging help and answers !! Big thanks
From: Riccardo on 8 Apr 2010 07:30 "Dominique " <domdominy(a)gmail.com> wrote in message <hpkd06$cpk$1(a)fred.mathworks.com>... > Hi all !! > > I am new on maltab, and I recently receive my trial DVD, my company plan to purchase a license by the end of the month. > > BUT... > > Our project consist of using matlab code/function in a C++ application or DLL. We will see either use the MCR or just the PC where matlab have been install. So I use the mcc command like this : > > Trial>> mcc -B cpplib:testylib hello.m > > or like this : > > Trial>> mcc -W lib:testlib -T link:lib magicsquare.m > > or simply I am using the deployment tool provided : > > The result is : > > 1. 1 hour of waiting the matlab to compile and produce something > 2. a CTF or a DLL file of 1 Gigabit minimum (si si : 1,000,000 KB min) !!! > > So can somebody tell me how on earth a software can produce such result in a export operation now days ?????!!!! > Maybe there are a bug someway ?? > > how come a simple "hello world" could become a 1 Gb size file !!!! Even if matlab is suppose to be able to calculate the formula of time travel, this is not a little exaggerate ? > > Also in case I am really missing something, how come a software can allow this ? It should be existing a warning thing saying that is too much.. I don't know. > > So please, please, I begging help and answers !! > > Big thanks > I'm afraid you shouldn't be surprised: Matlab Compiler produces "deployable applications" and without additional options (assuming any is available) to restrict its scope, it will probably spit out the entire Matlab environment (built-in functions, etc.) together with your little function.
From: Dominique on 8 Apr 2010 07:52 Thanks Ricardo ! So you mean that matlab is really not suitable for deployment ?
From: Bruno Luong on 8 Apr 2010 08:15 "Riccardo" <nothx(a)nospam.org> wrote in message <hpkep2$833$1(a)fred.mathworks.com>... > > I'm afraid you shouldn't be surprised: Matlab Compiler produces "deployable applications" and without additional options (assuming any is available) to restrict its scope, it will probably spit out the entire Matlab environment (built-in functions, etc.) together with your little function. I disagree with Riccardo, the built-in functions are packed separate in MCR, not in the EXE or CTF file. On my computer, the CTF and EXE compiled file of magic.m is no larger than 138 kbytes. Matlab might pack stuffs that is used in user initialization file such as matlabrc. So make sure to clean up the stuffs in there before compilation. Otherwise this is odd, and you should contact TMW support to sort it out. Bruno
From: ImageAnalyst on 8 Apr 2010 08:27
My compiled apps are all less than 3 MB. I don't know what all those options you are using do - maybe they bundle in some huge libraries. I simply do mcc -m myapp.m |