Hello everyone, I am studying link list in c I have a project in which I have lookup table of rpm (clocks used to load the timer used for motor). This rpm table, I am taking in an array Now I want to implement a link list which will access the rpm from table and load it to timer of clock used for running the motor Is it possible Because as I am studying the link list, in that it is mentioned that link list is used instead of array Is it possible to access an array elements using link list ? If yes, then pls suggest me some link for it Correct me if I am wrong Thank u all
Erik, I DON'T want to annoy you, but a while ago I have posted this in response to one of your post (here: http://www.keil.com/forum/docs/thread12822.asp):
with all due respect, if that does not fit into your perception of efficiency - then you must have a great time rewriting just about anything to win a pico-second here and there. no thanks...
hell, if this guy wants to do it with lists, lets wish him all the best. I just finished a control program for a machine that uses polling only (I deliberately excluded interrupts for the control part) based on a C167CS processor, where the response time error doesn't matter that much (as long as it is plus minus 250 milliseconds). It's not like a GPS system - all it needs to do is control a couple of hydraulic valves and read position sensors. The real challenge was dealing with the trashy legacy software and to make it comply with safety standards. If it had not required rather extensive communication (interrupt based CAN, serial...) I think it could have been done with an 8 bitter as well. This is a typical non time-critical embedded application. It needs to work, be safe and comply with the requirements - not fight to squeeze every CPU cycle (unless they are included in the requirements, of course!).
I DON'T want to annoy you you are absolutely not, different opinions is the very purpose of a forum. I state my opinion, you state yours. There is, in your post, NOTHING that even reading it 10 times (I did not) could be construed as a personal attack.
The very point that has been totally missed in this whole discourse is that nobody knows if the OPs project is time critical (i.e. requiring 'efficiency') or not, and if you read my post that started this whole shebang you will see that I specifically say "if you do not care about efficiency, go ahead and use the linked list"
Neither you nor I can know if the OP cares about efficiency, but because of my post he is warned if he does.
By the way, this brings up a different issue, where so many posts fail to state "what for". The best solution for a rocket is not necessarily the best soultion for a toy (expression 'stolen' from Patryk www.cygnal.org/.../002723.html )
Erik