Originally posted by d000hg
View Post
- Visitors can check out the Forum FAQ by clicking this link. You have to register before you can post: click the REGISTER link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. View our Forum Privacy Policy.
- Want to receive the latest contracting news and advice straight to your inbox? Sign up to the ContractorUK newsletter here. Every sign up will also be entered into a draw to WIN £100 Amazon vouchers!
Hard 'C' Question
Collapse
X
-
-
Oh, I thought you meant standard 64-bit ASM which seemed weird. If you are doing parallel data processing then ASM makes sense, it's really interesting.
Have you tried the Intel compiler?Originally posted by MaryPoppinsI'd still not breastfeed a naziOriginally posted by vetranUrine is quite nourishingComment
-
Originally posted by d000hg View PostAssembly is a little more past it than C. What are you doing that can't be achieved using intrinsics BTW? The only time ASM seems needed these days is in SIMD, where you can get massive improvements.
Originally posted by Somewhere on da WebWatching discussions of string and macro handling in C. And complaints. C is supposed to be assembler. If that bugs you, use something else.Behold the warranty -- the bold print giveth and the fine print taketh away.Comment
-
Originally posted by d000hg View PostOh, I thought you meant standard 64-bit ASM which seemed weird. If you are doing parallel data processing then ASM makes sense, it's really interesting.
Have you tried the Intel compiler?Comment
-
Err .... you create a U/m include file for your struct.
There it might not include your LIST_ENTRY field, you just have to
cope with this in the K/M data copy routines.
Or, you can cut and paste the LIST_ENTRY definition in to the U/m include file.
Or create a dummy version of your own devising using PVOID.
Basic C programming.Comment
-
"so .Netters need not apply" - meaning we have no knowledge of machine code, assembly, instruction sets, direct mode addressing, indirection, bitshift etc? kids stuff!!Comment
-
Originally posted by scotspine View PostErr .... you create a U/m include file for your struct.
There it might not include your LIST_ENTRY field, you just have to
cope with this in the K/M data copy routines.
Or, you can cut and paste the LIST_ENTRY definition in to the U/m include file.
Or create a dummy version of your own devising using PVOID.
Basic C programming.Knock first as I might be balancing my chakras.Comment
-
Originally posted by scotspine View Post"so .Netters need not apply" - meaning we have no knowledge of machine code, assembly, instruction sets, direct mode addressing, indirection, bitshift etc? kids stuff!!
HTHKnock first as I might be balancing my chakras.Comment
-
Still not working out for me.
I have a structure in Kernel mode defined as
NET_BUFFER_LIST*
now my user mode app does not know what a NET_BUFFER_LIST is so I declared it as PVOID.
All other members in the struct after the NET_BUFFER_LIST has garbled data.
So the question is
What's the difference in size between a PVOID and a NET_BUFFER_LIST*
Nothing shirley as they're both pointers?Knock first as I might be balancing my chakras.Comment
-
Pointers can be different lengths from one program to another. It depends on how you have compiled them.
Have you checked what byte alignment is in place? I seem to recall that intel chips allow different policies on demand. Been a while so the up-to-date experts such as scots could correct me on this one.Comment
- Home
- News & Features
- First Timers
- IR35 / S660 / BN66
- Employee Benefit Trusts
- Agency Workers Regulations
- MSC Legislation
- Limited Companies
- Dividends
- Umbrella Company
- VAT / Flat Rate VAT
- Job News & Guides
- Money News & Guides
- Guide to Contracts
- Successful Contracting
- Contracting Overseas
- Contractor Calculators
- MVL
- Contractor Expenses
Advertisers
Contractor Services
CUK News
- Streamline Your Retirement with iSIPP: A Solution for Contractor Pensions Sep 1 09:13
- Making the most of pension lump sums: overview for contractors Sep 1 08:36
- Umbrella company tribunal cases are opening up; are your wages subject to unlawful deductions, too? Aug 31 08:38
- Contractors, relabelling 'labour' as 'services' to appear 'fully contracted out' won't dupe IR35 inspectors Aug 31 08:30
- How often does HMRC check tax returns? Aug 30 08:27
- Work-life balance as an IT contractor: 5 top tips from a tech recruiter Aug 30 08:20
- Autumn Statement 2023 tipped to prioritise mental health, in a boost for UK workplaces Aug 29 08:33
- Final reminder for contractors to respond to the umbrella consultation (closing today) Aug 29 08:09
- Top 5 most in demand cyber security contract roles Aug 25 08:38
- Changes to the right to request flexible working are incoming, but how will contractors be affected? Aug 24 08:25
Comment