|
You cannot have the device in one system and the drivers in another.
Use the best guess
|
|
|
|
|
you should try to understand how mouse works on another remote desktop from your system.that may help.
|
|
|
|
|
Hello Everyone,
I need a function to implement zero copy approach.Can anyone provide me some examples or suggestions about this?
|
|
|
|
|
|
i have already searched but couldn't find any example.If you don't know plz don't give me stupid answers.
|
|
|
|
|
|
Please don't be silly trying to be rude.
Veni, vidi, vici.
|
|
|
|
|
sorry for being rude.but I have gone through many links but couldn't find any useful link.can you suggest me some links or examples.
|
|
|
|
|
You must've missed this link that Richard (indirectly) provided in his initial reply.
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Show me a community that obeys the Ten Commandments and I'll show you a less crowded prison system." - Anonymous
|
|
|
|
|
For Windows, see here. For Linux, see here.
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Show me a community that obeys the Ten Commandments and I'll show you a less crowded prison system." - Anonymous
|
|
|
|
|
When I try to compile a piece of code using the Intel Compiler, I get this error:
error: declaration may not appear after executable statement in block
I know I shall have all the declaration at the beginning of my code, but I'm eager to know why this should raise an error. GCC and the VS Compiler didn't give any errors.
Thanks in advance.
modified 17-Jun-13 15:04pm.
|
|
|
|
|
Can you show us a minimal code that shows the error ? or the exact line of code with a couple of line above and below the line that gives the error?
What does the Intel compiler help says about this error ?
Nihil obstat
|
|
|
|
|
This error is given even at some simple situations, like this:
int i = 0;
i = 0;
int j;
error will be given on the variable j declaration. Compiler doesn't give any further information on the error.
|
|
|
|
|
Are you compiling C code with a C compiler ?
Nihil obstat
|
|
|
|
|
Yes I do. The problem was with the C language standards specifications, as Mr. CPallini said. I tried compiling with GCC with
-std=c89 -pedantic argument and it warned me of mixed declarations and code.
|
|
|
|
|
Actually (if I got you) Visual C++ compiler gives an error if a variable declaration is below an executable statement in block (The same compiler, of course, does not give an error if is compiling a C++ source code).
GCC does not give errors because it accepts such declaration as an 'extension' (see, for instance "Variable declaration placement in C" at Stack Overflow[^]). Note that C99 standard allows such kind of declaration but Visual C++ (and possibly the INTEL ) compiler is not C99 compliant.
Veni, vidi, vici.
|
|
|
|
|
No debuggers, well, none here anyway, and none as good as I have used on Windows, so it is printk() debugging. A 20 minute full build needed to get any new code in and then it takes 10 minutes to reflash the OS image on the device.
Never have I been forced to work so slowly.
Windows? Different matter. Windbg, live embedded debugger, automatically sucks the newly built module off the host when the target boots, public symbols, full stack and disaasembly on a crash,
I am going to have to put something together for linux/ARM like Windbg....
==============================
Nothing to say.
|
|
|
|
|
Well, it looks you are building the kernel, that's not a breeze even on desktop machines (and you simply could not build the Windows one).
Anyway, what has it to do with the C++ forum?
Veni, vidi, vici.
|
|
|
|
|
Ha, this is a C forum too, so there!
Actually all I want to build is a module, but I am forced to build the kernel, unlike windows.
Anyway, it has taken me a week to find a relatively easy bug, the driver is badly written. I would have got it on windows in a few hours. Thats the difference I am talking about.
==============================
Nothing to say.
|
|
|
|
|
Linux has kernel modules. They don't fit your needs, do them?
Veni, vidi, vici.
|
|
|
|
|
They do, but unfortunately so much of what I am having to dig around in is part of the system.
==============================
Nothing to say.
|
|
|
|
|
Now, I have a VC++ project which will occupy 1.5 G memory(the peak value), and then it will give back memory in 5 minutes. But, I want to optimize the memory usage, because 1.5 G is too huge. Besides, I'm rather sure there are no memory leaks in my codes, I have tested my codes with 3 tools(PurifyPlus, Debug Diagnostic and CMemoryState function).
Anybody can help me? Or are there some tools to help me to do that?
Again, I must emphasize 'there are no memory leaks in my codes, I'm rather sure'. So, don't mention 'memory leaks' in the comments.
PS: I'm using Visual C++ 2010. And my project is made up of about 1400k lines of code.
modified 17-Jun-13 6:23am.
|
|
|
|
|
Falconapollo wrote: Anybody can help me? With what? All we know is that your application uses a lot of memory.
Use the best guess
|
|
|
|
|
Because there are lots of codes, so I want to find some tools to help me. It's alomost impossible to find out the problematical codes manually.
|
|
|
|
|
Then you need to go and look for the tools. As it stands your question is unanswerable.
Use the best guess
|
|
|
|